| || || |
Open Sound System
The Hitchhiker's Guide to OSS 4.1 Internals
Open an audio device file
struct fileinfo *file,
This function is used to open an audio device file (in /dev/oss/). It is usually called directly by the OS dependent device file interface code. Certain virtual/pseudo drivers can also use this function (this possibility is not documented and reserved for use by 4Front Technologies.
This function will call oss_audio_open_engine to open the first audio engine linked to this device file. If the first engine is busy then subsequent engines will be tried (next_in and next_out fields of the adev_t structure) until an available device is found.
|Audio device file number to be opened.|
|OSS device class number (don't care).|
|Pointer to OSS file information structure.|
|See the description of the open_flags field of adev_t |
|Minor device number of the opened audio engine will be returned in the variable pointed by this parameter.|
Negative value means error. Otherwise the audio engine index of the opened device will be returned.
Copyright (C) 4Front Technologies, 2007. All rights reserved. Back to index OSS web site