BASS_Init

Initializes an output device.

  Syntax
Return Boolean = BASS_Init(device, freq, flags)
  Parameters
device
Integer
The device to use... -1 = default device, 0 = no sound, 1 = first real output device.
freq
DWORD
Output sample rate.
flags
DWORD
Any combination of these flags.
BASS_DEVICE_8BITS Use 8-bit resolution, else 16-bit.
BASS_DEVICE_MONO Use mono, else stereo.
BASS_DEVICE_3D Enable 3D functionality.

  Returns

If the device was successfully initialized, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

  Example

if BASS_Init(-1,44100,0)=1
      print "BASS initialize sucessfully"
   else
      print "can not initialize BASS"
endif
wait key
end

  See also

List of commans
Main page



Hosted by uCoz