Lines Matching refs:nb_samples
63 static void print_audio_bytes(const TestStruct *test_sample, void **data_planes, int nb_samples) in print_audio_bytes() argument
69 int line_size = (buffers > 1) ? nb_samples * byte_offset in print_audio_bytes()
70 : nb_samples * byte_offset * test_sample->nb_ch; in print_audio_bytes()
83 static int read_samples_from_audio_fifo(AVAudioFifo* afifo, void ***output, int nb_samples) in read_samples_from_audio_fifo() argument
86 int samples = FFMIN(nb_samples, afifo->nb_samples); in read_samples_from_audio_fifo()
102 return av_audio_fifo_read(afifo, *output, nb_samples); in read_samples_from_audio_fifo()
106 int nb_samples, int offset) in write_samples_to_audio_fifo() argument
111 if(nb_samples > test_sample->nb_samples_pch - offset){ in write_samples_to_audio_fifo()
123 return av_audio_fifo_write(afifo, data_planes, nb_samples); in write_samples_to_audio_fifo()
157 ret = av_audio_fifo_peek(afifo, output_data, afifo->nb_samples); in test_function()
167 for (i = 0; i < afifo->nb_samples; ++i){ in test_function()
178 ret = av_audio_fifo_drain(afifo, afifo->nb_samples); in test_function()
182 if (afifo->nb_samples){ in test_function()