Navigation: thinBasic Modules > TBASS > Channels > TBASS_ChannelPlay |
|
Description
Starts (or resumes) playback of a sample, stream, MOD music, or recording.
Syntax
n = TBASS_ChannelPlay(hChannel, Restart)
Returns
Number
If successful, %TBASS_TRUE is returned, else %TBASS_FALSE is returned. Use TBASS_ErrorGetCode to get the error code.
Parameters
Name |
Type |
Optional |
Meaning |
hChannel |
Number |
No |
The channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD. |
Restart |
Number |
No |
Restart playback from the beginning? If hChannel is a user stream, it's current buffer contents are flushed. If hChannel it's a MOD music, it's BPM/etc are automatically reset to their initial values. |
Remarks
Restrictions
See also
Examples
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |