1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- .. _func_audio_allocchannel:
- ============
- AllocChannel
- ============
- AllocChannel -
- Description
- ===========
- .. code-block:: blitzmax
- AllocChannel:TChannel()
- Allocate audio channel
- Allocates an audio channel for use with #PlaySound and #CueSound.
- Once you are finished with an audio channel, you should use #StopChannel.
- Parameters
- ==========
- Return Values
- =============
- An audio channel object
- Examples
- ========
- .. code-block:: blitzmax
- 'AllocChannel.bmx
-
- timer=createtimer(20)
-
- sound=LoadSound ("shoot.wav")
- channel=AllocChannel()
-
- for i=1 to 20
- waittimer timer
- playsound sound,channel
- next
- See Also
- ========
|