_SNDCOPY

From QB64 Phoenix Edition Wiki
Revision as of 20:21, 19 April 2022 by SMcNeill (talk | contribs) (Created page with "{{DISPLAYTITLE:_SNDCOPY}} 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. {{PageSyntax}} : {{Parameter|copyHandle&}} = _SNDCOPY({{Parameter|handle&}}) {{PageDescription}} * Returns a new handle to the a copy in memory of the sound data referred to by the source handle. * No changes to the source handle (such as a volume change) are...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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.


Syntax

copyHandle& = _SNDCOPY(handle&)


Description

  • Returns a new handle to the a copy in memory of the 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 are not freed until all of them are closed.
  • In versions prior to build 20170811/60, the sound identified by handle& must have been opened using the "SYNC" capability to use this function.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link