Navigation: thinBasic Modules > TBASS > TBASS functions working on init, info, general, ... > TBASS_Init |
|
Description
Initializes an output device.
Syntax
n = TBASS_Init (Device, Frequency, Flags, Win, clsID)
Returns
If the device was successfully initialized, %TBASS_TRUE is returned, else %TBASS_FALSE is returned. Use TBASS_ErrorGetCode to get the error code.
Parameters
Name |
Type |
Optional |
Meaning |
||||||||||||||
Device |
Number |
No |
The device to use... -1 = default device, 0 = no sound, 1 = first real output device. |
||||||||||||||
Frequency |
Number |
No |
Output sample rate. |
||||||||||||||
Flags |
Number |
No |
Any combination of the following flags:
|
||||||||||||||
Win |
Number |
No |
The application's main window... 0 = the current foreground window (use this for console applications). |
||||||||||||||
clsID |
Number |
No |
Class identifier of the object to create, that will be used to initialize DirectSound... NULL (0) = use default. |
Remarks
Restrictions
See also
Examples
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |