fredvs / uos

United Open-libraries of Sound. United procedures for open-source audio libraries. For FPC/Lazarus/fpGUI/MSEgui.
Other
134 stars 26 forks source link

Web stream play aac ? #42

Open GuvaCode opened 2 days ago

GuvaCode commented 2 days ago

Do I allow aac (mp4a) playback ?

for example https://radiorecord.hostingradio.ru/ps96.aacp

or json api https://www.radiorecord.ru/api/stations/

fredvs commented 2 days ago

Hello Guva.

Yes, of course uos can play mpa4. When loading the libraries, assign the aac library (nil = not load).

// function uos_loadlib(PortAudioFileName, SndFileFileName, Mpg123FileName, Mp4ffFileName, FaadFileName, opusfilefilename, libxmpfilename: PChar) : LongInt;

You may test it with the /uos/examples/SimplePlayer

fredvs commented 2 days ago

Ooops, you are talking about webstream. No, at the moment only webstream from mp3 or opus. I will see what can be done, if you have some infos about web streaming of aac, it will be welcome.

GuvaCode commented 2 days ago

I just have a small program for listening to the radio that uses the radio record api. and they broadcast in aac format. I had to use the bass dll, which is not good. https://github.com/GuvaCode/UnRecord

fredvs commented 51 minutes ago

I used bass.dll a lot but it is not opensource nor free for commercial. I prefer now to use opensource and free libraries.

For stream of acc, I did try this week but I am blocked... https://github.com/knik0/faac/issues/50

I hope to get help from there.