yo3ggx Active Member Licensed User Longtime User Jan 20, 2016 #1 Hi, There is any equivalence for B4A's AudioTrack in B4i? I need to play an audio stream in pcm format (16 bit). Thank you Dan
Hi, There is any equivalence for B4A's AudioTrack in B4i? I need to play an audio stream in pcm format (16 bit). Thank you Dan
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2016 #2 You will need to create a wave file and then play it with MediaPlayer. An example of creating a wave file: https://www.b4x.com/android/forum/t...5-new-audiostreamer-object.30550/#post-177599 Upvote 0
You will need to create a wave file and then play it with MediaPlayer. An example of creating a wave file: https://www.b4x.com/android/forum/t...5-new-audiostreamer-object.30550/#post-177599
yo3ggx Active Member Licensed User Longtime User Jan 21, 2016 #3 Hi Erel, Because of latency requirements I think that this approach is not acceptable. Is VideoView able to play PCM 8000/16 audio stream or only MP3/AAC? Maybe someone more experienced than me can start from this and build a B4i library: https://code.google.com/p/ios-coreaudio-example/ Thank you. Dan Last edited: Jan 21, 2016 Upvote 0
Hi Erel, Because of latency requirements I think that this approach is not acceptable. Is VideoView able to play PCM 8000/16 audio stream or only MP3/AAC? Maybe someone more experienced than me can start from this and build a B4i library: https://code.google.com/p/ios-coreaudio-example/ Thank you. Dan
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2016 #4 yo3ggx said: Because of latency requirements I think that this approach is not acceptable Click to expand... You need to test it. Upvote 0
yo3ggx said: Because of latency requirements I think that this approach is not acceptable Click to expand... You need to test it.