From: <do...@us...> - 2007-11-22 00:09:47
|
Revision: 1280 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1280&view=rev Author: dohpaz Date: 2007-11-21 16:09:52 -0800 (Wed, 21 Nov 2007) Log Message: ----------- Merge over fix from /branches/team/elbunce/iaxclient. 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: -------------- trunk/lib/audio_portaudio.c Modified: trunk/lib/audio_portaudio.c =================================================================== --- trunk/lib/audio_portaudio.c 2007-11-21 23:53:32 UTC (rev 1279) +++ trunk/lib/audio_portaudio.c 2007-11-22 00:09:52 UTC (rev 1280) @@ -941,9 +941,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. |