安卓:录音的Soundpool输出Soundpool

2023-09-07 16:02:29 作者:Turn[转身]

我允许用户按按钮通过的Soundpool播放声音。是否有可能记录无论的Soundpool正在播放,使得用户能记录声音的序列

I'm allowing the user to push buttons to play sounds via a SoundPool. Is it possible to record whatever the SoundPool is playing so that the user can record a sequence of sounds?

推荐答案

其实,有没有可能赶上播放的声音。我有同样的愿望要做到这一点,但现在,它只是可能的纪录扬声器的输出。对于这一点,你必须使用MediaRecorder和记录只是活。但我不认为这是一个很好的解决方案,会有多大的背景声音。

Actually there is no possibility to catch played sound. I had the same wish to do this, but for now, it is just possible with record the output of the speaker. For this, You have to use MediaRecorder and record just "live". But I don´t think it is a good solution, there will be much background sounds.