From QB64 Wiki

Jump to: navigation, search

The _SNDCOPY function copies a sound to a new handle so that two or more of the same sound can be played at once. The passed handle parameter is from the _SNDOPEN function.


copy_handle& = _SNDCOPY (handle&)


  • Opened sound files must have the "SYNC" capability to use this function. (Currently WAV, OGG, AIF, RIF and VOC)
  • Returns a new handle to the same sound data referred to by the source handle.
  • No changes to the source handle (such as a volume change) are inherited.
  • The sound data referred to by the handle and its copies is not freed until all of them are closed.

Code Examples:

h2& = _SNDCOPY(h&)

See also:

Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
  • Page
  • Discussion
  • View source
  • History
Personal tools
  • Log in
  • What links here
  • Related changes
  • Special pages
  • Printable version