Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is SOUND synchronous or asynchronous ?
#2
Let's see if I know what I'm talking about.

"PLAY" and "SOUND" could play in the background, but one tone at a time, however. A few exceptions were IBM PCjr and Tandy1000 in which was possible to play up to three voices at a time with those commands, plus pink and white noise.

"Synchronous" means more than one voice at a time, right? It's possible with "_SND" commands in QB64(PE) but the programmer will have to manage it.

https://qb64phoenix.com/qb64wiki/index.php/SNDOPENRAW

Erm, just checked out this example but please lower the volume to a very low level before running it because it could get harsh.

The problem with "SOUND", specifically, is that the programmer must provide a duration. If the programmer is interested in changing the sound to react to user input or some other event, cannot do it only with "SOUND", might have to invest in "ON PLAY" ancient mechanism while programming in Q(uick)BASIC. Way back then 16-bit was incapable of playing back any kind of single-cycle waveform in high quality or any other sound that was much more complex, and even less on more than one voice at a time. Could do arpeggios easily with "PLAY" but that's all with Q(uick)BASIC.
Reply


Messages In This Thread
RE: Is SOUND synchronous or asynchronous ? - by mnrvovrfc - 11-27-2022, 06:51 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  need help playing sound using certain parameters madscijr 0 400 04-01-2025, 03:52 PM
Last Post: madscijr
Question sound file playback (and record) - manipulating speed + pitch in realtime? madscijr 12 2,009 02-26-2025, 06:33 PM
Last Post: Petr
  List of file sound extensions eoredson 17 2,764 12-27-2024, 04:30 PM
Last Post: hsiangch_ong
  _SndPlayFile not starting sound file eoredson 11 2,477 07-20-2023, 04:33 PM
Last Post: TerryRitchie
  incorporate sound files in code mdijkens 6 1,187 01-02-2023, 11:24 AM
Last Post: a740g

Forum Jump:


Users browsing this thread: 1 Guest(s)