diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-05-03 21:08:42 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-05-03 21:08:42 +0400 |
commit | 1058def8e7827e56ce4a70afb4aeacb5dc44148f (patch) | |
tree | 4495d23e7b54ab5700e3839081e797c1eafe0db9 /kernel/framework/include/remux.h | |
download | oss4-upstream.tar.gz |
Imported Upstream version 4.2-build2006upstream/4.2-build2006upstream
Diffstat (limited to 'kernel/framework/include/remux.h')
-rw-r--r-- | kernel/framework/include/remux.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/kernel/framework/include/remux.h b/kernel/framework/include/remux.h new file mode 100644 index 0000000..ff65791 --- /dev/null +++ b/kernel/framework/include/remux.h @@ -0,0 +1,42 @@ +/* + * Purpose: Definitions for the audio remux engine + * + * This header file is to be included in all drivers that use the remux engine + * for multi channel audio. + */ + +/* + * + * This file is part of Open Sound System. + * + * Copyright (C) 4Front Technologies 1996-2008. + * + * This this source file is released under GPL v2 license (no other versions). + * See the COPYING file included in the main directory of this source + * distribution for the license terms and conditions. + * + */ + +extern void +remux_install (char *name, oss_device_t * osdev, int frontdev, int reardev, + int center_lfe_dev, int surrounddev); + +#define MAX_SUBDEVS 4 + +typedef struct remux_devc +{ + oss_device_t *osdev; + oss_mutex_t mutex; + + int audio_dev; + + int n_physdevs; + int physdev[MAX_SUBDEVS]; + + int maxchannels; + struct fileinfo finfo[MAX_SUBDEVS]; + + int open_mode; + int channels; + int speed; +} remux_devc; |