openDevice

Initializes an audio device.

int
openDevice

Parameters

devID int

The number of the device, or -1 if default output device is needed.

device AudioDevice

Reference to newly opened device passed here.

Return Value

Type: int

0 (or AudioInitializationStatus.AllOk) if there was no error, or a specific errorcode.

Meta