Searched refs:audio_hw_params (Results 1 – 1 of 1) sorted by relevance
2498 …hannel_layout, int wanted_nb_channels, int wanted_sample_rate, struct AudioParams *audio_hw_params) in audio_open() argument2558 audio_hw_params->fmt = AV_SAMPLE_FMT_S16; in audio_open()2559 audio_hw_params->freq = spec.freq; in audio_open()2560 audio_hw_params->channel_layout = wanted_channel_layout; in audio_open()2561 audio_hw_params->channels = spec.channels; in audio_open()2562 …audio_hw_params->frame_size = av_samples_get_buffer_size(NULL, audio_hw_params->channels, 1, audio… in audio_open()2563 …audio_hw_params->bytes_per_sec = av_samples_get_buffer_size(NULL, audio_hw_params->channels, audio… in audio_open()2564 if (audio_hw_params->bytes_per_sec <= 0 || audio_hw_params->frame_size <= 0) { in audio_open()