Re: [Lazarus] How to play audio from memory.
On 2016-05-11 21:53, Donald Ziesig wrote: > Currently I am able to do this by calling omxplayer with a file name and > volume information. Unfortunately, the latency between starting > omxplayer and the beginning of the audio output is several seconds Yes, it’s possible with the United OpenLib of Sound (UOS). Fred has created an excellent library and it works very well. I’ve personally tested it on multiple platforms, and so too have others. The latency is very low when used with LCL, and even lower when used with fpGUI. You can find the code here: https://github.com/fredvs/uos/ It includes a couple of example applications too. There has been quite a few discussions of UOS with Fred in the Lazarus Forums too. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to play audio from memory.
Hi All! Is there any Free Pascal code that can play audio directly from memory? I would like to be able to play the equivalent of a .WAV file through the stereo output jack of a Raspberry Pi. Currently I am able to do this by calling omxplayer with a file name and volume information. Unfortunately, the latency between starting omxplayer and the beginning of the audio output is several seconds which is unacceptable for my application. I can't determine whether the latency comes from loading omxplayer's executable or reading the audio file, or both, but if I could have the code as part of the fpc executable and the audio data already in memory, I believe the latency will be as low as possible. Any suggestions will be appreciated. Don Ziesig -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] IDE docked 2 windows together
Hi again. Stupid of me, but I've just found the answer. Take an window to dock and put it in the centre of another window. Then 1 window will be created with tabs. mvg Frans van Leeuwen M 06-51695390 Op 11-05-2016 om 19:18 schreef Frans: Hi. I use Lazarus 1.6 and FPC 3.0.0 on windows. I've docked several windows in the IDE, the Object Inspector, the Code editor etc. Two windows were docked on top of each other and tabs were added to choose the visible window. This was the Messages window and the Watch List. Unfortunately I lost my complete docking (my fault) and so I did it again. But now, the two windows stay seperated. I don't mind, but I wonder what I did the first time and didn't do now. I've searched the net, but I cannot find an answer. Anyone an idea? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] IDE docked 2 windows together
Hi. I use Lazarus 1.6 and FPC 3.0.0 on windows. I've docked several windows in the IDE, the Object Inspector, the Code editor etc. Two windows were docked on top of each other and tabs were added to choose the visible window. This was the Messages window and the Watch List. Unfortunately I lost my complete docking (my fault) and so I did it again. But now, the two windows stay seperated. I don't mind, but I wonder what I did the first time and didn't do now. I've searched the net, but I cannot find an answer. Anyone an idea? -- mvg Frans van Leeuwen M 06-51695390 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus