Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feature Request - SOUND breaks on/off
#1
Could you add a function or statement that would turn on/off the brief break (silence) after a SOUND command?  You could have this ON by default, so things wouldn't be any different than they are now.  But, if the programmer wanted to, they could turn this OFF, to make old style SOUNDs not be so "buzzy".  Maybe something like _SoundBreakOn and _SoundBreakOff or perhaps _SoundBreak(x) where x could be 1 or 0.

As an example, try running this code in QBasic (DosBox), in QB64PE 3.6, and the current (at the time of this writing) QB64PE 3.11.
Notice the difference in sound quality for each.  In QBasic it is loud and clear.  In 3.6 it is slightly buzzy/clicky.  In 3.11 it is VERY buzzy.

Code: (Select All)
For w = 1 To 3
    For q = 100 To 2000 Step 10
        Sound q, .2
    Next q
    For q = 2010 To 110 Step -10
        Sound q, .2
    Next q
Next w
End

There is an old game I started but never finished back in the 1990's (in QBasic), that I have started to work on again in QB64PE.  It has a lot of "retro video game" style sounds that do things similar to the code above.  I've been compiling it with QB64PE 3.6 because in newer versions the sound quality is TERRIBLE, but in 3.6 it is decent.  I would much rather use the current version (QB64PE 3.11), the only thing stopping me from doing that is the poor/buzzy sound quality.

If there was a command like _SoundBreakOff that I could add to the start of my program, which would make the sound work as it does in 3.6 (or better yet, if it is at all possible, as it does in QBasic), I would be able to use the current version, which would be fantastic!!

Thanks so much for QB64PE - you all are doing some amazing work!!
Reply


Messages In This Thread
Feature Request - SOUND breaks on/off - by Abazek - 02-05-2024, 05:41 AM



Users browsing this thread: 1 Guest(s)