IonicWind Software

IWBasic => Music and Sound => Topic started by: billhsln on August 05, 2009, 11:29:47 AM

Title: Help! Need small example
Post by: billhsln on August 05, 2009, 11:29:47 AM
I have looked into the Demo for EAE and it is beyond my current understanding.  If some one has a few minutes, what I would really appreciate is a simple example.

All I need to do is to be able to emulate the old QBASIC SOUND command (ex: SOUND 600,5 where 600 is the frequency and 5 is the duration).  Basically all I need to be able to do is make beeping noises at different frequencies.

Thanks,
Bill
Title: Re: Help! Need small example
Post by: Ionic Wind Support Team on August 05, 2009, 11:41:56 AM
Bill, As indicated in the readme file the tone commands will be ready in the next update.  I removed them as they were still a bit buggy and were crashing on one of my testers machines.

Paul.

Title: Re: Help! Need small example
Post by: billhsln on August 05, 2009, 02:38:21 PM
No problem.  I can wait. 

Thanks for the quick reply,
Bill
Title: Re: Help! Need small example
Post by: ZeroDog on August 05, 2009, 11:51:37 PM
' dwFreq - frequency in hertz
' dwDuration - duration in milliseconds
Declare "kernel32.dll",Beep(dwFreq As int,  dwDuration As int),int
beep(600,50)
Title: Re: Help! Need small example
Post by: GWS on August 06, 2009, 01:04:19 AM
 :) .. that's a strange one ZD - it plays through the little speaker in the computer, but not through the sound card 'line out' socket.

Graham :)
Title: Re: Help! Need small example
Post by: Duffer on August 06, 2009, 01:15:15 AM
Graham, that is what it is supposed to do  ;)  Also only works on NT based versions of Windows  ;)
Title: Re: Help! Need small example
Post by: ZeroDog on August 06, 2009, 01:25:17 AM
as far as I remember, the QBasic SOUND played thru the PC squeeker as well  ;)
Title: Re: Help! Need small example
Post by: GWS on August 06, 2009, 01:57:50 AM
'squeeker'   ;D ;D

That's about right .. it must be on a different port to 'normal' sound.

Thanks, :)

Graham
Title: Re: Help! Need small example
Post by: billhsln on August 06, 2009, 08:16:20 AM
Thanks, ZeroDog, will see if that will do what I need.  Will be putting it into the SpaceTrek program.  It only had simple sounds, but I thought it might be better if it beeped every once in a while.  At least the code for SOUND is in the program.  I just commented it out.

Thanks again,
Bill