diff --git a/src/mod/mod_playback/mod_playback.c b/src/mod/mod_playback/mod_playback.c index b561071a3a..19284e52bf 100644 --- a/src/mod/mod_playback/mod_playback.c +++ b/src/mod/mod_playback/mod_playback.c @@ -71,7 +71,7 @@ void playback_function(switch_core_session *session, char *data) write_frame.buflen = sizeof(buf); - switch_console_printf(SWITCH_CHANNEL_CONSOLE, "OPEN FILE %s %dkhz %d channels\n", data, fh.samplerate, fh.channels); + switch_console_printf(SWITCH_CHANNEL_CONSOLE, "OPEN FILE %s %dhz %d channels\n", data, fh.samplerate, fh.channels); interval = 20; samples = (fh.samplerate / 50) * fh.channels; @@ -90,7 +90,7 @@ void playback_function(switch_core_session *session, char *data) switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Raw Codec Activated\n"); write_frame.codec = &codec; } else { - switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Raw Codec Activation Failed %s@%dhz %d\n", codec_name, fh.samplerate, interval); + switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Raw Codec Activation Failed %s@%dhz %d channels %dms\n", codec_name, fh.samplerate, fh.channels, interval); switch_core_file_close(&fh); switch_channel_hangup(channel); return; diff --git a/src/mod/mod_rawaudio/mod_rawaudio.c b/src/mod/mod_rawaudio/mod_rawaudio.c index 57e5615723..3097619462 100644 --- a/src/mod/mod_rawaudio/mod_rawaudio.c +++ b/src/mod/mod_rawaudio/mod_rawaudio.c @@ -283,10 +283,10 @@ static const switch_file_interface raw_file_interface = { static const switch_codec_implementation raw_32k_implementation = { /*.samples_per_second = */ 32000, /*.bits_per_second = */ 512000, + /*.microseconds_per_frame = */ 20000, /*.samples_per_frame = */ 640, /*.bytes_per_frame = */ 1280, /*.encoded_bytes_per_frame = */ 1280, - /*.microseconds_per_frame = */ 20000, /*.number_of_channels = */ 1, /*.pref_frames_per_packet = */ 1, /*.max_frames_per_packet = */ 1, diff --git a/src/switch_core.c b/src/switch_core.c index e5b0fdf0ed..62ed2ebe43 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -243,6 +243,8 @@ SWITCH_DECLARE(switch_status) switch_core_codec_init(switch_codec *codec, char * implementation->init(codec, flags, codec_settings); return SWITCH_STATUS_SUCCESS; + } else { + switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Codec %s Exists but not then desired implementation.\n", codec_name); } return SWITCH_STATUS_NOTIMPL;