Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Feature Request - SOUND breaks on/off
#2
UPDATE:  I found a solution.  I was tinkering around with the sample code found in the QB64PE Wiki entry for the SOUND statement, and I found a statement that does what I want:  PLAY "Q0"
This sets "volume ramping" to a value in milliseconds.  I didn't know this would also effect SOUND statements (I thought it was only for PLAY statements).  But then I saw this used in the "sound effects" sample code. When you set it to zero, it turns off the Sound Break (like I mentioned above) and completely gets rid of the buzzing!

Add a PLAY "Q0" to my above code, and the sound will play as it does in QBasic (which is even better than how it plays in QB64PE 3.6!!).  No buzzes/clicks at all.  Try the code below in QB64PE 3.11 and compare the sound quality to QBasic in DosBox (you'll need to remove or comment-out the PLAY "Q0" for QBasic):

Code: (Select All)

Play "Q0"
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

I will now be able to compile my old game using the current QB64PE version. Just need to add a PLAY "Q0" to it.

Again, thanks for the work you all have put into QB64PE.  This is fantastic!!
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Feature Request: Limit Scope of a "Find" and "Change" hanness 5 736 06-21-2025, 11:21 PM
Last Post: SMcNeill
  Ok, sound experts need a couple of answers doppler 3 8,563 11-03-2024, 01:23 AM
Last Post: doppler
Tongue request: anyone want to do a remake of goat simulator or desert bus? madscijr 7 1,623 10-01-2024, 04:30 PM
Last Post: SMcNeill
  DIM AT -- feature request Jack 2 740 08-15-2023, 12:15 AM
Last Post: grymmjack
  Sound Command johnno56 13 2,395 12-23-2022, 09:31 PM
Last Post: mnrvovrfc

Forum Jump:


Users browsing this thread: 1 Guest(s)