Hey gang, I am getting a pretty strange error on the Kindle Fire Phone. I am testing out the androidSoundPlayerExample and the voice sample (which is the only mp3 – the rest are wav files) seems to trigger the following error:
Naming convention difference between Android and openFrameworks
ofxAndroidSoundPlayer uses Android’s SoundPool, which is for short .wav sound effects, where ofxAndroidVideoPlayer uses Android’s MediaPlayer, which is very good for videos and mp3s.
you should use it like that:
music.removeTexture(); //do not forget this line for sound files
About your error; I think you need to somehow add ofAndroidLib project to your project dependencies. Maybe Project Properties -> Java Build Path -> Projects -> Add… may do the job. But i am not sure.
EDIT: The last paragraph may not be the case. I have had such errors in the past but I don’t remember how I solved.
Ah interesting, so this is similar to the streaming=false parameter in the constructor to ofSoundPlayer? I have read that on Android it toggles between different media backends but I have not looked at the source to see for sure:
So, even though both of those methods were supposed to use a streaming mediaplayer on the backend my error message indicates that the soundpool is being used. I wonder if is something specific to the Kindle Fire Phone? I am going to start looking at the source to see how these functions are implemented behind the scenes, because otherwise I am at a complete loss on how to load and play a sound.