Skip to content

Commit

Permalink
FS-5430 --resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
anthmFS committed May 15, 2013
1 parent 3fe3a00 commit c8ef740
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions conf/vanilla/autoload_configs/portaudio.conf.xml
Expand Up @@ -31,6 +31,9 @@
<!--audio sample rate and interval -->
<param name="sample-rate" value="48000"/>
<param name="codec-ms" value="20"/>

<!--uncomment the following line to make mod_portaudio fail to load if it fails to find a device-->
<!-- <param name="unload-on-device-fail" value="true"/> -->
</settings>

<!--
Expand Down
Expand Up @@ -33,7 +33,7 @@
<param name="codec-ms" value="20"/>

<!--uncomment the following line to make mod_portaudio fail to load if it fails to find a device-->
<param name="unload-on-device-fail" value="true"/>
<!-- <param name="unload-on-device-fail" value="true"/> -->
</settings>

<!--
Expand Down
4 changes: 0 additions & 4 deletions src/mod/endpoints/mod_portaudio/mod_portaudio.c
Expand Up @@ -2453,10 +2453,6 @@ audio_stream_t *get_audio_stream(int indev, int outdev)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error invalid output audio device\n");
return NULL;
}
if (indev == -1) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error invalid input audio device\n");
return NULL;
}
if (create_codecs(0) != SWITCH_STATUS_SUCCESS) {
return NULL;
}
Expand Down

0 comments on commit c8ef740

Please sign in to comment.