[Pas2js] live mp3 streams opening question

Michael Van Canneyt michael at freepascal.org
Sat Aug 22 18:47:59 CEST 2020



On Sat, 22 Aug 2020, Mgr. Janusz Chmiel wrote:

> I know, that it is too complex. But. Do you think, that used webaudio unit
> or other Pascal routines would be able to open live MP3 stream?
> Or unfortunately no and it would had to be impelemented in some new or
> existing unit?
> I have found webaudio unit inside \pas2js package. But I do not know, if is
> it possible to use it for this task. And yours pacman game contain useful
> code to play sound melody but you have even not used webaudio.

You can use webaudio for this, but this is far too complicated for simple
tasks.

You can simply create an Audio tag, as this is enough for most cases.

Michael.


More information about the Pas2js mailing list