]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 30 Dec 2005 17:26:38 +0000 (17:26 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 30 Dec 2005 17:26:38 +0000 (17:26 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@246 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/mod_playback/mod_playback.c
src/mod/mod_rawaudio/mod_rawaudio.c
src/switch_core.c

index b561071a3aad6e08f094b1c3aeec0a691438c5fd..19284e52bfda89545c6b65d369855d73f79e411e 100644 (file)
@@ -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;
index 57e5615723c5c9cd8b15c47b96c5189c2936f00e..30976194627eff5082549ddc359cd92b0b253b75 100644 (file)
@@ -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,
index e5b0fdf0ed60f6588420f8e0018c4c07d0479491..62ed2ebe436663b8a84f702bc8f14c827fd432e0 100644 (file)
@@ -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;