Commit 07978916 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Revert "Workaround to prevent "Out of memory" error when creating AudioTrack."

This workaround is not working.

This reverts commit 5471aec7.
parent bdac9d5c
......@@ -522,13 +522,6 @@ static void android_snd_write_preprocess(MSFilter *obj){
if (AudioTrack::getMinFrameCount(&play_buf_size,ad->stype,ad->rate)==0){
if (play_buf_size > 10000) {
ms_message("AudioTrack: getMinFrameCount() returned a weird result, use AudioRecord::getMinFrameCount() instead");
if (AudioRecord::getMinFrameCount(&play_buf_size, ad->rate, AUDIO_FORMAT_PCM_16_BIT, 1) != 0) {
ms_error("AudioTrack: Fallback to AudioRecord::getMinFrameCount() failed");
ms_message("AudioTrack: min frame count is %i",play_buf_size);
ms_error("AudioTrack::getMinFrameCount() error");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment