I missed / forgot this topic. I just sent myself a reminder to test tomorrow.angros47 wrote:Has anyone tested it? I'd like some feedbacks and opinions
Maybe a stupid question, but there is no example code to be tested right?
So far, I can only say that "buildlinux.sh" did create a "libfbsfx.a" file (had to change the compiler path however).
I created a "libfbsfx32.a" and a "libfbsfx64.a" so I can test with fbc 32 & 64 bit. My first test program:
Code: Select all
#include "sfx.bi"
#inclib "fbsfx64"
? "1"
SoundSet (22000, 2, 16)
? "2"
Sound SineWave(2000), 0.5
? "3"
sleep 1000
? "4"
Play "cde", "def"
? "5"
sleep 1000
? "6"
Result:
Sound SineWave(2000), 0.5 works.
Play "cde", "def" does not do anything. Not sure that I have the syntax right.
System: Dell laptop with mostly Intel stuff, OS: Ubuntu Mate 18.04, Compiler: fbc 1.06.0
I think you mean ScreenRes. Also ScreenRes is a function which returns ok / not ok. SoundSet does not allow this.readme.txt wrote:SoundSet (Frequency, channels, bits)
It initializes the PCM sound (it must be used before using other sound commands), just as ScreenSet must be used before graphic commands. Channels can be set to 1 (mono) or 2 (stereo), "bits" can be 8 or 16, Frequency is the number of samples per second (the "resolution" of the sound)
I did a quick conversion of the readme file to html (easier to read): readme_sfx.html