mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-16 08:56:42 -05:00
Added simple_mixer and simple_pcm subdirs with some 'empty' code
This commit is contained in:
parent
72e6c9c3c0
commit
7c72da4ae5
10 changed files with 608 additions and 16 deletions
|
|
@ -8,7 +8,8 @@ alsainclude_HEADERS = asoundlib.h asoundef.h \
|
|||
conf.h pcm.h pcm_plugin.h rawmidi.h timer.h \
|
||||
hwdep.h control.h mixer.h \
|
||||
seq_event.h seq.h seqmid.h seq_midi_event.h \
|
||||
conv.h instr.h iatomic.h
|
||||
conv.h instr.h iatomic.h \
|
||||
pcm_simple.h mixer_simple.h
|
||||
|
||||
noinst_HEADERS = sys.h search.h list.h aserver.h local.h alsa-symbols.h
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
* \author Jaroslav Kysela <perex@suse.cz>
|
||||
* \author Abramo Bagnara <abramo@alsa-project.org>
|
||||
* \author Takashi Iwai <tiwai@suse.de>
|
||||
* \date 1998-2001
|
||||
* \date 1998-2003
|
||||
*
|
||||
* Application interface library for the ALSA driver
|
||||
*
|
||||
|
|
|
|||
|
|
@ -27,9 +27,15 @@
|
|||
#ifndef __ALSA_MIXER_SIMPLE_H
|
||||
#define __ALSA_MIXER_SIMPLE_H
|
||||
|
||||
#include <alsa/asoundlib.h>
|
||||
|
||||
/** Simple Mixer latency type */
|
||||
enum snds_mixer_io_type {
|
||||
|
||||
/*
|
||||
* playback section
|
||||
*/
|
||||
|
||||
/** master volume - left (0-1000) */
|
||||
SNDS_MIO_MASTER_LVOL = 0,
|
||||
/** master volume - right (0-1000) */
|
||||
|
|
@ -66,6 +72,9 @@ enum snds_mixer_io_type {
|
|||
/** CD volume - right mute (0 = off, 1 = on) */
|
||||
SNDS_MIO_AUX_RMUTE,
|
||||
|
||||
/*
|
||||
* capture section
|
||||
*/
|
||||
|
||||
/** capture gain - left (0-1000) */
|
||||
SNDS_MIO_CGAIN_LVOL = 0x1000,
|
||||
|
|
@ -85,6 +94,8 @@ enum snds_mixer_io_type {
|
|||
SNDS_MIO_CSOURCE_MIX
|
||||
};
|
||||
|
||||
typedef struct snds_mixer snds_mixer_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
@ -95,14 +106,13 @@ extern "C" {
|
|||
* \{
|
||||
*/
|
||||
|
||||
int snds_mixer_open(snds_mixer_t **pcm, const char *playback_name, const char *capture_name);
|
||||
int snds_mixer_open_lconf(snds_mixer_t **pcm, const char *plaback_name, const char *capture_name, snd_config_t *lconf);
|
||||
int snds_mixer_close(snds_mixer_t *pcm);
|
||||
int snds_mixer_poll_descriptors_count(snds_mixer_t *pcm);
|
||||
int snds_mixer_poll_descriptors(snds_mixer_t *pcm, struct pollfd *pfds, unsigned int space);
|
||||
int snds_mixer_poll_descriptors_revents(snds_mixer_t *pcm, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
||||
int snds_mixer_io_get(snds_mixer_t *pcm, enum snds_mixer_io_type type, int *val);
|
||||
int snds_mixer_io_set(snds_mixer_t *pcm, enum snds_mixer_io_type type, int val);
|
||||
int snds_mixer_open(snds_mixer_t **pmixer, const char *playback_name, const char *capture_name, snd_config_t *lconf);
|
||||
int snds_mixer_close(snds_mixer_t *mixer);
|
||||
int snds_mixer_poll_descriptors_count(snds_mixer_t *mixer);
|
||||
int snds_mixer_poll_descriptors(snds_mixer_t *mixer, struct pollfd *pfds, unsigned int space);
|
||||
int snds_mixer_poll_descriptors_revents(snds_mixer_t *mixer, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
||||
int snds_mixer_io_get(snds_mixer_t *mixer, enum snds_mixer_io_type type, int *val);
|
||||
int snds_mixer_io_set(snds_mixer_t *mixer, enum snds_mixer_io_type type, int val);
|
||||
int snds_mixer_io_change(snds_mixer_t *mixer, enum snds_mixer_io_type *changed, int changed_array_size);
|
||||
|
||||
/** \} */
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
#ifndef __ALSA_PCM_SIMPLE_H
|
||||
#define __ALSA_PCM_SIMPLE_H
|
||||
|
||||
#include <alsa/pcm.h>
|
||||
#include <alsa/asoundlib.h>
|
||||
|
||||
/** Simple PCM latency type */
|
||||
enum snds_pcm_latency_type {
|
||||
|
|
@ -58,6 +58,8 @@ enum snds_pcm_xrun_type {
|
|||
SNDS_PCM_XRUN_STOP
|
||||
};
|
||||
|
||||
typedef struct snds_pcm snds_pcm_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
@ -77,7 +79,7 @@ int snds_pcm_start(snds_pcm_t *pcm);
|
|||
int snds_pcm_drop(snds_pcm_t *pcm);
|
||||
int snds_pcm_drain(snds_pcm_t *pcm);
|
||||
int snds_pcm_delay(snds_pcm_t *pcm, snd_pcm_sframes_t *delayp);
|
||||
int snds_pcm_resume(snd_pcm_t *pcm);
|
||||
int snds_pcm_resume(snds_pcm_t *pcm);
|
||||
int snds_pcm_wait(snds_pcm_t *pcm, int timeout);
|
||||
snd_pcm_t *snds_pcm_raw_playback(snds_pcm_t *pcm);
|
||||
snd_pcm_t *snds_pcm_raw_capture(snds_pcm_t *pcm);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue