Hello,
I just bought my B4A, and my first program I want to Write the individual Low and High Byte pairs to the Stereo Sound/Audio channels, and Read the byte pairs from the AC coupled Microphone Input. I read that this can be done with audioStreamer Library calls which I have been muddling through for 3 days.
What I think I know is that the Read data in a buffer from audioStreamer operations is Low Byte, followed by High Byte for the microphone AC coupled signal idling at about +2.5 volts. And the Low High bytes form a signed integer of the microphone signal value sampled. No idea if the right and left byte pairs are interleaved back in forth in the audio buffer writing to the L/R speakers?
I'm really confused about B4A arrays and accessing the bytes in them with indexes, and how to write 1 byte at a time with: "streamer.Write(b)" in the example.
Any ideas would be Greatly Appreciated. I cant even get a byte = 100 to write to the speakers with streamer.Write(100)
Sincerely,
Bill Jensen
I just bought my B4A, and my first program I want to Write the individual Low and High Byte pairs to the Stereo Sound/Audio channels, and Read the byte pairs from the AC coupled Microphone Input. I read that this can be done with audioStreamer Library calls which I have been muddling through for 3 days.
What I think I know is that the Read data in a buffer from audioStreamer operations is Low Byte, followed by High Byte for the microphone AC coupled signal idling at about +2.5 volts. And the Low High bytes form a signed integer of the microphone signal value sampled. No idea if the right and left byte pairs are interleaved back in forth in the audio buffer writing to the L/R speakers?
I'm really confused about B4A arrays and accessing the bytes in them with indexes, and how to write 1 byte at a time with: "streamer.Write(b)" in the example.
Any ideas would be Greatly Appreciated. I cant even get a byte = 100 to write to the speakers with streamer.Write(100)
Sincerely,
Bill Jensen