Recent

Author Topic: LAMW: feature/help request: sending WAV data to audio ports  (Read 300 times)

Manlio

  • Jr. Member
  • **
  • Posts: 58
  • Pascal dev
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
manlio mazzon gmail

jmpessoa

  • Hero Member
  • *****
  • Posts: 1479
Re: LAMW: feature/help request: sending WAV data to audio ports
« Reply #1 on: June 11, 2019, 10:50:14 pm »
Quote
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....
« Last Edit: June 12, 2019, 03:01:56 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard