This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.
This version is copyright and may only be used for local testing purposes. It may not be distributed.
Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.
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