Forum > Audio and Video

Output buffer to audio.

(1/5) > >>

Dzandaa:
Hi,

I have an asynchronous buffer that contains audio data.
What is the best and simplest unit/library to send this data to the audio system?
Portable in Linux and Windows.

Thank you.

B->

cdbc:
Hi
UOS or BASS...
Regards Benny

Dzandaa:
Hi,

UOS seems great, but complicated (Lots of files to include).

I just have a float buffer and a sampling rate.

B->

Fred vS:

--- Quote from: Dzandaa on June 12, 2025, 04:58:40 pm ---Hi,

UOS seems great, but complicated (Lots of files to include).

I just have a float buffer and a sampling rate.

B->

--- End quote ---

It all depends on your needs and the audio format of the buffer.
If you only want to play this buffer, only the PortAudio and SndFile library dependencies are required.
You can dynamically load these libraries from the uos package or use the ones installed on your system.

You may take a look at demo: https://github.com/fredvs/uos/blob/main/examples/consoleplaymemorybuffer.pas

Dzandaa:
Hi
@Fred:

I saw this example, my problem is that I don't have any "bufferinfos", just an array of doubles without compression.

Thanks anyway.

B->

Navigation

[0] Message Index

[#] Next page

Go to full version