Can I use the Android Visualizer class on a SoundPool object?

When using the SoundPool sound class, it definitely has some advantages over MediaPlayer when playing short audio clips easily. I noticed that SoundPool is much faster. MediaPlayer can lag a little on startup and it's much easier to go from one audio clip to another where I don't have to stop, reset, cook every time.

However, is it possible to use the renderer to get real-time data in real time from the audio data being played in the SoundPool, just like with the MediaPlayer? I couldn't come across any topics that cover this, but by chance, I thought I would ask because it seems like it should be possible. The documentation says, "The SoundPool library uses the MediaPlayer service to decode audio to a raw 16-bit mono or stereo PCM stream." So if I could refer to the MediaPlayer that SoundPool uses, I think I could just use getAudioSessionId()

, perhaps?

I've already tried setting the session id to 0 to just get the output set. It didn't work, but it's not the ideal effect I'm looking for anyway. Also one of the first things I did was try to use the downloaded SoundPool SoundID instead of the renderer session id, but that also didn't work.

+3
android fft sessionid soundpool visualizer


source to share


No one has answered this question yet

Check out similar questions:

3606
Close / hide Android soft keyboard
3295
Why is the Android emulator so slow? How can we speed up the development of an Android emulator?
3288
Correct use cases for Android UserManager.isUserAGoat ()?
2609
Is there a unique identifier for an Android device?
2510
How to persist android activity state by persisting instance state?
2097
Is there a way to run Python on Android?
1858
"Debug certificate expired" error in Android Eclipse plugins
1844
What is "Context" on Android?
3
Can I get raw PCM data from MediaPlayer or SoundPool?
1
How to convert audio from stereo to mono in Android?



All Articles
Loading...
X
Show
Funny
Dev
Pics