Hello Immo-Gert,
Sorry it's been a while...I've been pretty busy lately and haven't had
much time for Basic.
Anyway, tonight I took a look at the changes you made and they look good.
I found a better way to do sound, however, so I completely changed the
sound command. It now takes a frequency and duration argument and
plays a beep through the PC speaker. I think this is a lot more fun
and instructive than having to go through playing the .wav files.
It only works on Windows currently, but implementing it on Linux
shouldn't be difficult. All that has to be done is to create a sin
wave at the appropriate frequency and length and write it to /dev/dsp.
Once I finish that up on Linux I'll do a new release, hopefully this weekend.
As always, thanks for your help,
-Ian
On 1/19/07, Immo-Gert Birn <imm...@gm...> wrote:
> Hello,
>
> with change list 212 I did a few changes:
> o I added an icon.
> o The sound command takes sound files from the directory where the
> executable resides unless a '/' or '\' is in the sound file name. Thus
> 'sound "click.wav"' takes the sound file from the BASIC256 install
> directory, while 'sound "../click.wav"' tries to use the specified path
> directly.
> o In case there is exactly one command line argument specified, the
> file is loaded into the editor after start up. This allows to associate
> *.kbs files with the BASIC256 executable,thus a doubleclick on a kbs
> file opens BASIC256 and loads the file.
>
> Since this is my first c++ change ever, it would be great if you could
> have a close look on this. As always, in case you do not like the
> changes, simply revert them.
>
> Finally, I would like to propose to make a 0.9.2 release soon.
>
> Best regards,
> Immo
>
|