| | Open Sound System The Hitchhiker's Guide to OSS 4.1 Internals |
oss_audio_open_engine
Open an audio device file
Usage
int oss_audio_open_engine(
int dev,
int dev_class,
struct fileinfo *file,
int recursive,
int open_flags,
int *newdev
);
Description
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.
Parameters
Parameter | Description |
dev | Audio engine number to be opened. |
dev_class | OSS device class number (don't care). |
file | Pointer to OSS file information structure. |
recursive | Reserved. |
open_flags | See the description of the open_flags field of adev_t |
. newdev | Minor device number of the opened audio engine will be returned in the variable pointed by this parameter. |
Return value
Negative value means error. Otherwise the audio engine index of the opened device will be returned.
Referenced by
Copyright (C) 4Front Technologies, 2007. All rights reserved. Back to index OSS web site