int i, exlen;
switch_stream_handle_t stream = { 0 };
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
+ int sps_total = 10000;
+ switch_core_session_ctl(SCSC_SPS, &sps_total);
SWITCH_STANDARD_STREAM(stream);
params[i].ext = extensions[i];
switch_threadattr_create(&thd_attr, fst_pool);
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
- // slow down to avoid this: "[CRIT] switch_time.c:1243 Over Session Rate of 30!"
switch_thread_create(&thread_list[i], thd_attr, sndfile_write_read_mono_thread_run, (void *)¶ms[i], fst_pool);
- switch_sleep(100000);
}
for (i = 0; i < exlen; i++) {
int i, exlen;
switch_stream_handle_t stream = { 0 };
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
+ int sps_total = 10000;
+ switch_core_session_ctl(SCSC_SPS, &sps_total);
SWITCH_STANDARD_STREAM(stream);
params[i].ext = extensions[i];
switch_threadattr_create(&thd_attr, fst_pool);
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
- // slow down to avoid this: "[CRIT] switch_time.c:1243 Over Session Rate of 30!"
switch_thread_create(&thread_list[i], thd_attr, sndfile_write_read_m2s_thread_run, (void *)¶ms[i], fst_pool);
- switch_sleep(100000);
}
for (i = 0; i < exlen; i++) {
int i, exlen;
switch_stream_handle_t stream = { 0 };
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
+ int sps_total = 10000;
+ switch_core_session_ctl(SCSC_SPS, &sps_total);
SWITCH_STANDARD_STREAM(stream);
params[i].ext = extensions[i];
switch_threadattr_create(&thd_attr, fst_pool);
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
- // slow down to avoid this: "[CRIT] switch_time.c:1243 Over Session Rate of 30!"
switch_thread_create(&thread_list[i], thd_attr, sndfile_write_read_s2m_thread_run, (void *)¶ms[i], fst_pool);
- switch_sleep(10000);
}
int i, exlen;
switch_stream_handle_t stream = { 0 };
test_params_t params[(sizeof(extensions) / sizeof(extensions[0]))] = {{ 0 }};
+ int sps_total = 10000;
+ switch_core_session_ctl(SCSC_SPS, &sps_total);
SWITCH_STANDARD_STREAM(stream);
params[i].ext = extensions[i];
switch_threadattr_create(&thd_attr, fst_pool);
switch_threadattr_stacksize_set(thd_attr, SWITCH_THREAD_STACKSIZE);
- // slow down to avoid this: "[CRIT] switch_time.c:1243 Over Session Rate of 30!"
switch_thread_create(&thread_list[i], thd_attr, sndfile_write_read_stereo_thread_run, (void *)¶ms[i], fst_pool);
- switch_sleep(100000);
}
for (i = 0; i < exlen; i++) {