mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 13:28:31 +00:00
switch_bytes_per_frame -> switch_samples_per_frame rename
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7639 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
563046d0ca
commit
d6c105efe0
6 files changed
+10
-10
No files matched your search
@@ -176,7 +176,7 @@ static void *SWITCH_THREAD_FUNC read_stream_thread(switch_thread_t *thread, void
|
||||
}
|
||||
|
||||
source->rate = fh.samplerate;
|
||||
source->samples = switch_bytes_per_frame(fh.native_rate, source->interval);
|
||||
source->samples = switch_samples_per_frame(fh.native_rate, source->interval);
|
||||
|
||||
if (switch_core_timer_init(&timer, source->timer_name, source->interval, source->samples, source->pool) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Can't start timer.\n");
|
||||
@@ -425,7 +425,7 @@ static void launch_threads(void)
|
||||
}
|
||||
}
|
||||
|
||||
source->samples = switch_bytes_per_frame(source->rate, source->interval);
|
||||
source->samples = switch_samples_per_frame(source->rate, source->interval);
|
||||
|
||||
switch_core_hash_insert(globals.source_hash, source->name, source);
|
||||
|
||||
|
||||
Reference in new issue
Block a user