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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20230228/7002de43/attachment.htm>
Mailing lists / pas2js / 2023-02
audio record to wav files
4 messages · 3 people · –
- MMgr. Janusz Chmiel 2
- MMehmet Erol Sanliturk 1
- MMichael Van Canneyt 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Please see
https://github.com/de-signer/sdl2-fpc
SDL2 bindings for Free Pascal Compiler
( zLib )
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20230228/f9d6e6df/attachment.htm>
Dear Michael and other elite Pas2js units developers, Does somebody of us plan to release…
Mgr. Janusz Chmiel wroteDear 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.
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>
