summaryrefslogtreecommitdiff
path: root/gr-audio-portaudio/src/audio_portaudio_source.cc
diff options
context:
space:
mode:
authorTom Rondeau2010-11-24 16:54:13 -0500
committerTom Rondeau2010-11-24 16:54:13 -0500
commite5198a304a12410da8936a16900feba2fad1edae (patch)
tree9ea105543780c3568f6b99faeb950b354975b2f6 /gr-audio-portaudio/src/audio_portaudio_source.cc
parentff6ce4dcf7c602cd94f840de21034634c95af806 (diff)
downloadgnuradio-e5198a304a12410da8936a16900feba2fad1edae.tar.gz
gnuradio-e5198a304a12410da8936a16900feba2fad1edae.tar.bz2
gnuradio-e5198a304a12410da8936a16900feba2fad1edae.zip
Removing warnings in portaudio source/sink.
Diffstat (limited to 'gr-audio-portaudio/src/audio_portaudio_source.cc')
-rw-r--r--gr-audio-portaudio/src/audio_portaudio_source.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gr-audio-portaudio/src/audio_portaudio_source.cc b/gr-audio-portaudio/src/audio_portaudio_source.cc
index 23801a8bf..e508fda22 100644
--- a/gr-audio-portaudio/src/audio_portaudio_source.cc
+++ b/gr-audio-portaudio/src/audio_portaudio_source.cc
@@ -105,7 +105,10 @@ portaudio_source_callback (const void *inputBuffer,
else { // overrun
self->d_noverruns++;
- ::write(2, "aO", 2); // FIXME change to non-blocking call
+ ssize_t r = ::write(2, "aO", 2); // FIXME change to non-blocking call
+ if(r == -1) {
+ perror("audio_portaudio_source::portaudio_source_callback write error to stderr.");
+ }
self->d_ringbuffer_ready = false;
self->d_ringbuffer_cond.notify_one(); // Tell the sink to get going!