From: <jpg...@us...> - 2007-10-03 17:30:06
|
Revision: 1169 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1169&view=rev Author: jpgrayson Date: 2007-10-03 10:30:10 -0700 (Wed, 03 Oct 2007) Log Message: ----------- Remove C99-isms that prevent building with msvc compiler. Modified Paths: -------------- trunk/lib/iaxclient_lib.c Modified: trunk/lib/iaxclient_lib.c =================================================================== --- trunk/lib/iaxclient_lib.c 2007-10-03 17:27:30 UTC (rev 1168) +++ trunk/lib/iaxclient_lib.c 2007-10-03 17:30:10 UTC (rev 1169) @@ -1809,10 +1809,11 @@ EXPORT int iaxc_audio_devices_set(int input, int output, int ring) { + int ret; + if ( test_mode ) return 0; - int ret = 0; get_iaxc_lock(); ret = audio_driver.select_devices(&audio_driver, input, output, ring); put_iaxc_lock(); @@ -1853,10 +1854,11 @@ EXPORT int iaxc_play_sound(struct iaxc_sound *s, int ring) { + int ret; + if ( test_mode ) return 0; - int ret = 0; get_iaxc_lock(); ret = audio_driver.play_sound(s,ring); put_iaxc_lock(); @@ -1865,10 +1867,11 @@ EXPORT int iaxc_stop_sound(int id) { + int ret; + if ( test_mode ) return 0; - int ret = 0; get_iaxc_lock(); ret = audio_driver.stop_sound(id); put_iaxc_lock(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |