Revision: 1278
http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1278&view=rev
Author: dohpaz
Date: 2007-11-21 15:46:10 -0800 (Wed, 21 Nov 2007)
Log Message:
-----------
Make sure to stop/start the audio devices in pa when selecting new devices and
the audio isn't running. This fixes a bug where mixer level get/set would
operate on the previously selected devices (usually system default at startup)
instead of the devices people intend to set.
Modified Paths:
--------------
branches/team/elbunce/iaxclient/lib/audio_portaudio.c
Modified: branches/team/elbunce/iaxclient/lib/audio_portaudio.c
===================================================================
--- branches/team/elbunce/iaxclient/lib/audio_portaudio.c 2007-11-21 22:41:30 UTC (rev 1277)
+++ branches/team/elbunce/iaxclient/lib/audio_portaudio.c 2007-11-21 23:46:10 UTC (rev 1278)
@@ -1042,9 +1042,16 @@
selectedRing = ring;
if ( running )
{
+ /* stop/start audio, in order to switch devices */
pa_stop(d);
pa_start(d);
}
+ else
+ {
+ /* start/stop audio, in order to initialize mixers and levels */
+ pa_start(d);
+ pa_stop(d);
+ }
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|