Lazarus
Programming => Operating Systems => Android => Topic started by: Manlio on June 11, 2019, 12:17:01 pm
-
I'm researching how to send a stream of WAV data to the Android audio port.
For example, Android's MediaPlayer says it can do "playback of audio/video files and streams."
Here I'm asking about streams -- for example, let's say you generate a stream of audio data, in real time, e.g. a sine wave, and send the stream to Android's audio output, in real time, a little bit at a time, keeping for example a 50 milliseconds buffer of data full at all times.
As far as I can see, the jMediaPlayer component cannot do that right now, but perhaps it can be extended to do that?
Or is some other approach better and more convenient?
If given a few solid pointers, I'm also willing to work on this issue myself and share the code, but like I said, I would need some help and guidance too...
Thanks
-
jMediaPlayer component cannot do that right now, but perhaps it can be extended to do that?
Yes, this is good!
And you can get some help here:
Lazarus menu "Tools" --> "[LAMW] Android Module Wizard" --> "New jComponent Create"
--> tab [Help]
EDITED: there is a "jMidiManager" component, too....