Saturday, 5 May 2012
Speaker-busting screech
So yeah, don't forget to set your endian-ness on your direct ByteBuffers when you're playing with sound files.
Poor speaker.
This morning I got sound going with jjmpeg/android. This was mostly fixing up the way I was using AVPacket's - I removed the the AVAudioPacket class and added the functionality to AVPacket.
I need to look at the new audio_decode_4 api, as that might simplify the usage anyway and remove the need for the special case. I also hit some surround-sound files - i've just never played with audio much (don't even have speakers on my pc) - so have some more api to think about binding.
Shouldn't be too hard to fit this into the video player, AudioTrack reports it's position which is enough.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment