Lines Matching refs:sample_rate

65 	int sample_rate = 8000;  in dtmfgen_soundwrite()  local
72 ms_filter_call_method(ms_tester_voidsource, MS_FILTER_SET_SAMPLE_RATE, &sample_rate); in dtmfgen_soundwrite()
75 ms_filter_call_method(ms_tester_dtmfgen, MS_FILTER_SET_SAMPLE_RATE, &sample_rate); in dtmfgen_soundwrite()
77 if (ms_filter_call_method(ms_tester_soundwrite, MS_FILTER_SET_SAMPLE_RATE, &sample_rate) != 0) { in dtmfgen_soundwrite()
135 int sample_rate = 8000; in fileplay_soundwrite() local
146 ms_filter_call_method(ms_tester_fileplay, MS_FILTER_GET_SAMPLE_RATE, &sample_rate); in fileplay_soundwrite()
148 if (ms_filter_call_method(ms_tester_soundwrite, MS_FILTER_SET_SAMPLE_RATE, &sample_rate) != 0) { in fileplay_soundwrite()
151 if (sample_rate != soundwrite_sample_rate) need_resampler = TRUE; in fileplay_soundwrite()
235 int sample_rate = 8000; in soundread_soundwrite() local
241 ms_filter_call_method(ms_tester_soundread, MS_FILTER_GET_SAMPLE_RATE, &sample_rate); in soundread_soundwrite()
243 if (ms_filter_call_method(ms_tester_soundwrite, MS_FILTER_SET_SAMPLE_RATE, &sample_rate) != 0) { in soundread_soundwrite()
246 if (sample_rate != soundwrite_sample_rate) need_resampler = TRUE; in soundread_soundwrite()
288 int sample_rate = 8000; in fileplay_bv16enc_bv16dec_soundwrite() local
309 ms_filter_call_method(ms_tester_fileplay, MS_FILTER_GET_SAMPLE_RATE, &sample_rate); in fileplay_bv16enc_bv16dec_soundwrite()
312 ms_filter_call_method(ms_tester_encoder, MS_FILTER_GET_BITRATE, &sample_rate); in fileplay_bv16enc_bv16dec_soundwrite()
313 ms_filter_call_method(ms_tester_decoder, MS_FILTER_SET_BITRATE, &sample_rate); in fileplay_bv16enc_bv16dec_soundwrite()
328 if (ms_filter_call_method(ms_tester_soundwrite, MS_FILTER_SET_BITRATE, &sample_rate) != 0) { in fileplay_bv16enc_bv16dec_soundwrite()
331 if (sample_rate != soundwrite_sample_rate) need_write_resampler = TRUE; in fileplay_bv16enc_bv16dec_soundwrite()
388 int sample_rate = 8000; in soundread_speexenc_speexdec_soundwrite() local
395 ms_filter_call_method(ms_tester_encoder, MS_FILTER_GET_BITRATE, &sample_rate); in soundread_speexenc_speexdec_soundwrite()
396 ms_filter_call_method(ms_tester_decoder, MS_FILTER_SET_BITRATE, &sample_rate); in soundread_speexenc_speexdec_soundwrite()
397 if (ms_filter_call_method(ms_tester_soundread, MS_FILTER_SET_BITRATE, &sample_rate) != 0) { in soundread_speexenc_speexdec_soundwrite()
400 if (sample_rate != soundread_sample_rate) need_read_resampler = TRUE; in soundread_speexenc_speexdec_soundwrite()
411 if (ms_filter_call_method(ms_tester_soundwrite, MS_FILTER_SET_BITRATE, &sample_rate) != 0) { in soundread_speexenc_speexdec_soundwrite()
414 if (sample_rate != soundwrite_sample_rate) need_write_resampler = TRUE; in soundread_speexenc_speexdec_soundwrite()