Oops, use snd_pcm_drain() for drain, not snd_pcm_wait().
authorbruceperens <bruceperens@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 25 Apr 2014 21:59:35 +0000 (21:59 +0000)
committerbruceperens <bruceperens@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 25 Apr 2014 21:59:35 +0000 (21:59 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1570 01035d8c-6547-0410-b346-abe4f91aad63

freedv-server/source/platform/linux/audio_out_alsa.cpp

index a89e7ce146df5994e80326c91fc505e8a914454b..e14daa27b6547f6dd366fc0f4f965bd3bab4c994 100644 (file)
@@ -123,7 +123,7 @@ namespace FreeDV {
   void
   AudioOutALSA::drain()
   {
-    snd_pcm_wait(handle, 1000);
+    snd_pcm_drain(handle);
   }
 
   // Write audio into the "short" type.