Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2023-02

audio record to wav files

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mehmet Erol Sanliturk
to Mgr. Janusz Chmiel

Please see

https://github.com/de-signer/sdl2-fpc
SDL2 bindings for Free Pascal Compiler
( zLib )

https://www.google.com/search?q=sdl2+bindings+for+free+pascal+fpc&sxsrf=AJOqlzVmZa1wUIvOPKWFWN7INRqFyNvShA%3A1677609859992&ei=g0v-Y7SJPLSGxc8PnvGoyAw&ved=0ahUKEwj01pre77j9AhU0Q_EDHZ44CskQ4dUDCA4&uact=5&oq=sdl2+bindings+for+free+pascal+fpc&gs_lcp=Cgxnd3Mtd2l6LXNlcnAQAzIFCCEQoAEyBQghEKABMgUIIRCgAToKCAAQRxDWBBCwAzoGCAAQFhAeOgUIABCGAzoECCEQFToHCCEQoAEQCjoFCAAQogRKBAhBGABQ1WdYu4oCYI2NAmgDcAF4AIAB2AGIAdIVkgEGMS4xOS4xmAEAoAEByAEIwAEB&sclient=gws-wiz-serp

sdl2 bindings for free pascal fpc

Mehmet Erol Sanliturk

On Tue, Feb 28, 2023 at 8:14?PM Mgr. Janusz Chmiel via Pas2js <

Show quoted text 13 lines
wrote: Dear Michael and other elite Pas2js units developers, Does somebody of us plan to release unit which will be able to record .wav file from microphone? Does somebody of us plan to release unit, which will be able to play .wav files from harddisk? Or no? _______________________________________________ Pas2js maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/pas2js

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20230228/f9d6e6df/attachment.htm>

Michael Van Canneyt
to Mgr. Janusz Chmiel: Dear Michael and other elite Pas2js units developers, Does somebody of us plan to release…
Mgr. Janusz Chmiel wrote
Dear Michael and other elite Pas2js units developers, Does somebody of us plan to release unit which will be able to record .wav file from microphone? Does somebody of us plan to release unit, which will be able to play .wav files from harddisk? Or no?

I have code to create an audio stream from the microphone, but it would need some polishing.

If you want, you can try to code it yourself, for instance using this:

https://ralzohairi.medium.com/audio-recording-in-javascript-96eed45b75ee

To play a wav file, you can simply set the src element of an Audio tag to the file.

Michael.

Mgr. Janusz Chmiel
to Michael Van Canneyt

Dear Michael,
I will be rather waitingfor your professional pas2js unit. Because I love Pascal much more than Java script. But thank you for your useful Java script link.

But I also do not know how to correctly construct The filename when I would want to play some file from internal storage, not from The Internet. It is not simply possible to type file name.
And when I have tried special construction based on //file etc, I have got error exception. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20230301/69908f07/attachment.htm>