android - "Don't play soundPool because of a recording" on LG phone -



android - "Don't play soundPool because of a recording" on LG phone -

i have app records via audiorecord , play sounds @ same time via: play(int soundid, float leftvolume, float rightvolume, int priority, int loop, float rate)

the audiorecord lastly minute, , during there several short sounds soundpool lasting 2 seconds each. sounds pre-loaded.

and works expected on devices such (e.g. galaxy s3; nexus 7 device). when testing exact same code on lg-p875 (probably modern other 2 devices , running android 4.1+), message: "don't play soundpool because of recording". comes soundpool filter.

the same code soundpool, without recording, running on lg-p875, plays sounds fine. issue playing soundpool , recording on lg phone.

i'd appreciate ideas or directions take find workaround / find root source of issue. expect there many devices similar lg-p875 error occurs.

thanks.

the workaround used automatically generate midi files , play them using mediaplayer. way lg phones, can record @ same time play sounds.

android playback soundpool recording audiorecord

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -