> Still, seems easy enough to do basic sounds in linux by shelling the beep
command
Ha, ok, you only want to make a sound...
Peter's beep way is maybe the the easiest.
You may also use portaudio library to produce sine-wave.
Here example done by Mister Blaazen with library included=>
https:
On 15/09/15 22:14, Graeme Geldenhuys wrote:
> On 2015-09-15 20:59, Peter wrote:
>> I guess he means Procedure Sound in rtl/unix/crt.pp
>> This does not work for me either, just get the "sound of silence".
>
>
> That is a know problem for many years. Here is a thread from 2007.
>
> http://free-pa
> I guess he means Procedure Sound in rtl/unix/crt.pp
> This does not work for me either, just get the "sound of silence".
Huh, same for me trying /fpcsrc/packages/fcl-sound/ ...
Does it exist a demo how to use fcl-sound ?
Thanks
Fre;D
-
Many thanks ;-)
--
View this message in context:
On 2015-09-15 20:59, Peter wrote:
> I guess he means Procedure Sound in rtl/unix/crt.pp
> This does not work for me either, just get the "sound of silence".
That is a know problem for many years. Here is a thread from 2007.
http://free-pascal-general.1045716.n5.nabble.com/simple-sound-implementa
On 15/09/15 18:34, Fred van Stappen wrote:
>
> What sound procedure is unable to work ?
>
> Thanks.
>
> Fre;D
>
I guess he means Procedure Sound in rtl/unix/crt.pp
This does not work for me either, just get the "sound of silence".
Procedure Sound(Hz: Word);
begin
{$ifdef havekiocsound}
if
> What component can I use when i only want to play only the specified
> Hz frequency of sound?
Hello and thanks to try uos.
You do not need a special component, there is the procedure =>
uos_AddFilterIn();
Take a look at filterplay.pas example (both for LCL and fpGUI).
But, of course, you may
Hi!
I succesfully compiled the updated version.
What component can I use when i only want to play only the specified
Hz frequency of sound?
I would like to use this component within a console-based application.
I am not using Lazarus IDE (or Delphi), only Free Pascal.
Sorry if this question too
On 2015-09-15 16:24, Jonas Maebe wrote:
> I wouldn't, because then as soon as you give your source code to someone
> else, they may not be able to compile it unless they use specific
> switches (as in this thread).
Very true. All my own code have the desired language mode defined in
each unit.
On 15/09/15 12:25, Graeme Geldenhuys wrote:
I recommend developers update there $HOME/.fpc.cfg files so it uses
-Mobjfpc, instead of the default -Mfpc
I wouldn't, because then as soon as you give your source code to someone
else, they may not be able to compile it unless they use specific
On 15/09/15 11:25, Graeme Geldenhuys wrote:
> .
> the default -Mfpc (what I consider outdated
> language mode).
>
>
> Regards,
> - Graeme -
>
Finding maxint at 32767 (64bit compiler) with that mode can be a bit of
a shock too!
Regards,
PB
___
Am 15.09.2015 12:25 schrieb "Graeme Geldenhuys" <
mailingli...@geldenhuys.co.uk>:
>
> TIP:
> I recommend developers update there $HOME/.fpc.cfg files so it uses
> -Mobjfpc, instead of the default -Mfpc (what I consider outdated
> language mode).
>
The best solution is to have {$mode objfpc} in t
On 2015-09-15 05:42, Géza Kovacs Géza wrote:
> uos_portaudio.pas(359,9) Error: Identifier not found "Result"
> uos_portaudio.pas(364,10) Error: Identifier not found "Result"
Hello Géza Kovacs Géza.
Could you try with new release b307af6..65e9749 =>
https://github.com/fredvs/uos
Fre;D.
-
> I checked... The demos have it, but the actual UOS units don't...
OK, Graeme, you win ;-)
I will update it asap.
Many thanks.
Fre;D
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.fre
On 2015-09-15 11:19, fredvs wrote:
> It must be something else but I do not see what.
Maybe your fpc.cfg was already changed to use -Mobjfpc? That is why I
never noticed it before. Also if you change compiler options, remove all
existing *.ppu files, or force a Build All.
Regards,
- Graeme -
-
On 2015-09-15 11:19, fredvs wrote:
> So there must be a other problem with Géza Kovacs Géza compilation.
I checked... The demos have it, but the actual UOS units don't - and
that is where the error occurs. I could easily reproduce the issue here
with MSEide (and make sure my fpc.cfg has the defaul
> Try adding -MDelphi or -MObjFpc to the compiler options.
Ooops, just checked all demos and /{$mode objfpc}{$H+} /is already added.
So there must be a other problem with Géza Kovacs Géza compilation.
I just have re-try the consoleplay example on Windows and do not have
problem.
It must be som
> Try adding -MDelphi or -MObjFpc to the compiler options.
Thanks Bart. This is the trick.
> 'll notify the author that it might be a good idea to add the syntax
> mode at the beginning of each unit.
Thanks Graeme, I will add it ASAP.
Fre;D
-
Many thanks ;-)
--
View this message in cont
On 2015-09-15 05:42, Géza Kovacs Géza wrote:
> uos_portaudio.pas(359,9) Error: Identifier not found "Result"
> uos_portaudio.pas(364,10) Error: Identifier not found "Result"
I just got an update and the uos and examples compile just fine.
I think Bart is correct, add the -MObjFpc to your compiler
On 9/15/15, Géza Kovacs Géza wrote:
> Thx your answer.
> I unable to compile UOS on Windows, I tested it with Free Pascal 2.6.4.
>
> It produces the following errors:
>
> uos_portaudio.pas(359,9) Error: Identifier not found "Result"
Try adding -MDelphi or -MObjFpc to the compiler options.
Bart
Hi Graeme,
Thx your answer.
I unable to compile UOS on Windows, I tested it with Free Pascal 2.6.4.
It produces the following errors:
Free Pascal Compiler version 2.6.4 [2014/03/06] for i386
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Win32 for i386
Compiling consoleplay.pa
On 2015-09-14 16:27, Géza Kovacs Géza wrote:
> What are the methods of (cross-platform) produce sound?
The best would be to create a cross-platform wrapper class around all
sound API's on the platforms you are interested in. eg: OSS under
FreeBSD, PulseAudio under Linux, MCI under Windows.
SDL do
Hi All,
What can I use if the sound procedure unable to work?
It works under Windows, when I use the WinCRT unit, but it unable to
work under Linux.
What are the methods of (cross-platform) produce sound?
Best regards, G
___
fpc-pascal maillist - fpc-
22 matches
Mail list logo