New updated mixer interface and better protocol handling...

This commit is contained in:
Jaroslav Kysela 1998-08-24 16:23:22 +00:00
parent e093a81e5e
commit 44582b2fbe
7 changed files with 63 additions and 18 deletions

View file

@ -3,5 +3,5 @@
* Configuration header file for compilation of the ALSA driver
*/
#define SND_LIB_VERSION "0.0.9"
#define SND_LIB_VERSION "0.0.10"
/* #undef WORDS_BIGENDIAN */

View file

@ -8,7 +8,8 @@
typedef struct snd_mixer_callbacks {
void *private_data; /* should be used by application */
void (*channel_was_changed)( void *private_data, int channel );
void *reserved[15]; /* reserved for future use - must be NULL!!! */
void (*switch_was_changed)( void *private_data, int switchn );
void *reserved[14]; /* reserved for future use - must be NULL!!! */
} snd_mixer_callbacks_t;
#ifdef __cplusplus
@ -25,8 +26,9 @@ int snd_mixer_channel( void *handle, const char *channel_id );
int snd_mixer_channel_info( void *handle, int channel, snd_mixer_channel_info_t *info );
int snd_mixer_channel_read( void *handle, int channel, snd_mixer_channel_t *data );
int snd_mixer_channel_write( void *handle, int channel, snd_mixer_channel_t *data );
int snd_mixer_special_read( void *handle, snd_mixer_special_t *special );
int snd_mixer_special_write( void *handle, snd_mixer_special_t *special );
int snd_mixer_switches( void *handle );
int snd_mixer_switch_read( void *handle, int switchn, snd_mixer_switch_t *data );
int snd_mixer_switch_write( void *handle, int switchn, snd_mixer_switch_t *data );
int snd_mixer_read( void *handle, snd_mixer_callbacks_t *callbacks );
#ifdef __cplusplus

View file

@ -31,7 +31,7 @@
#define SOUNDLIB_VERSION_MAJOR 0
#define SOUNDLIB_VERSION_MINOR 0
#define SOUNDLIB_VERSION_SUBMINOR 9
#define SOUNDLIB_VERSION_SUBMINOR 10
#define SOUNDLIB_VERSION ( ( LIBULTRA_VERSION_MAJOR << 16 ) | ( LIBULTRA_VERSION_MINOR << 8 ) | LIB_ULTRA_VERSION_SUBMINOR )
/*
@ -89,7 +89,8 @@ int snd_ctl_mixer_info( void *handle, int dev, snd_mixer_info_t *info );
typedef struct snd_mixer_callbacks {
void *private_data; /* should be used by application */
void (*channel_was_changed)( void *private_data, int channel );
void *reserved[15]; /* reserved for future use - must be NULL!!! */
void (*switch_was_changed)( void *private_data, int switchn );
void *reserved[14]; /* reserved for future use - must be NULL!!! */
} snd_mixer_callbacks_t;
#ifdef __cplusplus
@ -106,8 +107,9 @@ int snd_mixer_channel( void *handle, const char *channel_id );
int snd_mixer_channel_info( void *handle, int channel, snd_mixer_channel_info_t *info );
int snd_mixer_channel_read( void *handle, int channel, snd_mixer_channel_t *data );
int snd_mixer_channel_write( void *handle, int channel, snd_mixer_channel_t *data );
int snd_mixer_special_read( void *handle, snd_mixer_special_t *special );
int snd_mixer_special_write( void *handle, snd_mixer_special_t *special );
int snd_mixer_switches( void *handle );
int snd_mixer_switch_read( void *handle, int switchn, snd_mixer_switch_t *data );
int snd_mixer_switch_write( void *handle, int switchn, snd_mixer_switch_t *data );
int snd_mixer_read( void *handle, snd_mixer_callbacks_t *callbacks );
#ifdef __cplusplus

View file

@ -4,6 +4,6 @@
#define SOUNDLIB_VERSION_MAJOR 0
#define SOUNDLIB_VERSION_MINOR 0
#define SOUNDLIB_VERSION_SUBMINOR 9
#define SOUNDLIB_VERSION_SUBMINOR 10
#define SOUNDLIB_VERSION ( ( LIBULTRA_VERSION_MAJOR << 16 ) | ( LIBULTRA_VERSION_MINOR << 8 ) | LIB_ULTRA_VERSION_SUBMINOR )