I'm experimenting with AUDIO on Android, but I'm new with B4A. I fould a Recording and Playback example from Erel, which uses the AudioStreamer. It works perfect, but I have a question.
The AudioStreamer is initalized with 16bit-Resolution...
...but it looks like the Event function will return BYTEs instead of SHORTs.
This is not important as long as you only send the byte untouched to the next stream, but....
If I want to manipulate the audio datas I have to know which byte is the low and which is the high. For manipulation I would need SIGNED SHORTs values from -32767 to+32767.
Does anybody have experiences with this? Where can I find more informations?
Thanks
The AudioStreamer is initalized with 16bit-Resolution...
B4X:
streamer.Initialize("streamer", 44100, True, 16, streamer.VOLUME_MUSIC)
...
Sub streamer_RecordBuffer (Buffer() As Byte)
'collect the recording data
buffers.Add(Buffer)
End Sub
This is not important as long as you only send the byte untouched to the next stream, but....
If I want to manipulate the audio datas I have to know which byte is the low and which is the high. For manipulation I would need SIGNED SHORTs values from -32767 to+32767.
Does anybody have experiences with this? Where can I find more informations?
Thanks