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 /lib/libossmix/libossmix_impl.h | |
download | oss4-upstream/4.2-build2006.tar.gz |
Imported Upstream version 4.2-build2006upstream/4.2-build2006upstream
Diffstat (limited to 'lib/libossmix/libossmix_impl.h')
-rw-r--r-- | lib/libossmix/libossmix_impl.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/libossmix/libossmix_impl.h b/lib/libossmix/libossmix_impl.h new file mode 100644 index 0000000..3848166 --- /dev/null +++ b/lib/libossmix/libossmix_impl.h @@ -0,0 +1,36 @@ +/* + * + * 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 int mixlib_trace; + +typedef struct +{ + int (*connect) (const char *hostname, int port); + int (*get_fd) (ossmix_select_poll_t * cb); + void (*disconnect) (void); + void (*enable_events) (void); + int (*get_nmixers) (void); + int (*get_mixerinfo) (int mixernum, oss_mixerinfo * mi); + int (*open_mixer) (int mixernum); + void (*close_mixer) (int mixernum); + int (*get_nrext) (int mixernum); + int (*get_nodeinfo) (int mixernum, int node, oss_mixext * ext); + int (*get_enuminfo) (int mixernum, int node, oss_mixer_enuminfo * ei); + int (*get_description) (int mixernum, int node, oss_mixer_enuminfo * desc); + int (*get_value) (int mixernum, int ctl, int timestamp); + void (*set_value) (int mixernum, int ctl, int timestamp, int value); + void (*timertick)(void); +} ossmix_driver_t; + +extern ossmix_driver_t ossmix_local_driver, ossmix_tcp_driver; +extern void _client_event (int cmd, int p1, int p2, int p3, int p4, int p5); +extern int _ossmix_refresh_mixer(int mixernum, int prev_nmixers); |