mirror of
https://github.com/QB64Official/qb64.git
synced 2024-07-20 23:15:15 +00:00
LINE INPUT will now use the faster method if passed a file handle that has been opened FOR BINARY. As such, the _BLINEINPUT command has been removed. qb64.bas now takes advantage of this for reading from '$include files, at least in Include Manager 1. Some tweaking of internal/source/main.txt was required to get things into a sane state, so I'm holing off changing the compiler any further so the auto-builder can make sure everything's smoothed over. Note: Everything should still compile as normal; I'm just being overcautious.
27 lines
820 B
Plaintext
27 lines
820 B
Plaintext
The {{KW|_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 {{KW|_SNDOPEN}} function.
|
|
|
|
|
|
{{PageSyntax}}
|
|
:{{Parameter|copy_handle&}} = {{KW|_SNDCOPY}} ({{Parameter|handle&}})
|
|
|
|
|
|
{{PageDescription}}
|
|
*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.
|
|
|
|
|
|
{{PageExamples}}
|
|
{{CodeStart}}
|
|
|
|
h2& = {{Cl|_SNDCOPY}}(h&)
|
|
|
|
{{CodeEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
*{{KW|_SNDPLAYCOPY}}
|
|
|
|
|
|
{{PageNavigation}} |