summaryrefslogtreecommitdiff
path: root/gr-audio/lib/alsa/audio_alsa_source.cc
diff options
context:
space:
mode:
authorTom Rondeau2012-01-06 14:19:59 -0500
committerTom Rondeau2012-01-06 14:19:59 -0500
commit963b3dd91cd2204c601dc6325cc5b159e927054c (patch)
tree9813c3a43f581572a533e7e2db9fc04640ce593c /gr-audio/lib/alsa/audio_alsa_source.cc
parent1561b416702a26d53f0bbd5879925534c0ff82b2 (diff)
downloadgnuradio-963b3dd91cd2204c601dc6325cc5b159e927054c.tar.gz
gnuradio-963b3dd91cd2204c601dc6325cc5b159e927054c.tar.bz2
gnuradio-963b3dd91cd2204c601dc6325cc5b159e927054c.zip
Remove some more warnings. I'm probably being a bit OCD about these ones, but it makes the build output so much nicer...
Diffstat (limited to 'gr-audio/lib/alsa/audio_alsa_source.cc')
-rw-r--r--gr-audio/lib/alsa/audio_alsa_source.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/gr-audio/lib/alsa/audio_alsa_source.cc b/gr-audio/lib/alsa/audio_alsa_source.cc
index 08d4996a8..a90552ff5 100644
--- a/gr-audio/lib/alsa/audio_alsa_source.cc
+++ b/gr-audio/lib/alsa/audio_alsa_source.cc
@@ -348,12 +348,11 @@ audio_alsa_source::work_s16_2x1 (int noutput_items,
typedef gr_int16 sample_t; // the type of samples we're creating
static const float scale_factor = 1.0 / std::pow(2.0f, 16-1);
- unsigned int nchan = output_items.size ();
float **out = (float **) &output_items[0];
sample_t *buf = (sample_t *) d_buffer;
int bi;
- assert (nchan == 1);
+ assert (output_items.size () == 1);
unsigned int sizeof_frame = d_hw_nchan * sizeof (sample_t);
assert (d_buffer_size_bytes == d_period_size * sizeof_frame);
@@ -425,12 +424,11 @@ audio_alsa_source::work_s32_2x1 (int noutput_items,
typedef gr_int32 sample_t; // the type of samples we're creating
static const float scale_factor = 1.0 / std::pow(2.0f, 32-1);
- unsigned int nchan = output_items.size ();
float **out = (float **) &output_items[0];
sample_t *buf = (sample_t *) d_buffer;
int bi;
- assert (nchan == 1);
+ assert (output_items.size () == 1);
unsigned int sizeof_frame = d_hw_nchan * sizeof (sample_t);
assert (d_buffer_size_bytes == d_period_size * sizeof_frame);