mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-24 08:56:44 -05:00
PCM changes (record->capture)...
This commit is contained in:
parent
fd672765f4
commit
dc126564c7
8 changed files with 57 additions and 57 deletions
|
|
@ -40,13 +40,13 @@ int snd_ctl_switch_read(snd_ctl_t *handle, snd_switch_t * sw);
|
|||
int snd_ctl_switch_write(snd_ctl_t *handle, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_info(snd_ctl_t *handle, int dev, snd_pcm_info_t * info);
|
||||
int snd_ctl_pcm_playback_info(snd_ctl_t *handle, int dev, snd_pcm_playback_info_t * info);
|
||||
int snd_ctl_pcm_record_info(snd_ctl_t *handle, int dev, snd_pcm_record_info_t * info);
|
||||
int snd_ctl_pcm_capture_info(snd_ctl_t *handle, int dev, snd_pcm_capture_info_t * info);
|
||||
int snd_ctl_pcm_playback_switch_list(snd_ctl_t *handle, int dev, snd_switch_list_t * list);
|
||||
int snd_ctl_pcm_playback_switch_read(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_playback_switch_write(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_record_switch_list(snd_ctl_t *handle, int dev, snd_switch_list_t * list);
|
||||
int snd_ctl_pcm_record_switch_read(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_record_switch_write(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_capture_switch_list(snd_ctl_t *handle, int dev, snd_switch_list_t * list);
|
||||
int snd_ctl_pcm_capture_switch_read(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_pcm_capture_switch_write(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
int snd_ctl_mixer_info(snd_ctl_t *handle, int dev, snd_mixer_info_t * info);
|
||||
int snd_ctl_mixer_switch_list(snd_ctl_t *handle, int dev, snd_switch_list_t *list);
|
||||
int snd_ctl_mixer_switch_read(snd_ctl_t *handle, int dev, snd_switch_t * sw);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#define SND_PCM_OPEN_PLAYBACK (O_WRONLY)
|
||||
#define SND_PCM_OPEN_RECORD (O_RDONLY)
|
||||
#define SND_PCM_OPEN_CAPTURE (O_RDONLY)
|
||||
#define SND_PCM_OPEN_DUPLEX (O_RDWR)
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
@ -22,19 +22,19 @@ int snd_pcm_file_descriptor(snd_pcm_t *handle);
|
|||
int snd_pcm_block_mode(snd_pcm_t *handle, int enable);
|
||||
int snd_pcm_info(snd_pcm_t *handle, snd_pcm_info_t * info);
|
||||
int snd_pcm_playback_info(snd_pcm_t *handle, snd_pcm_playback_info_t * info);
|
||||
int snd_pcm_record_info(snd_pcm_t *handle, snd_pcm_record_info_t * info);
|
||||
int snd_pcm_capture_info(snd_pcm_t *handle, snd_pcm_capture_info_t * info);
|
||||
int snd_pcm_playback_format(snd_pcm_t *handle, snd_pcm_format_t * format);
|
||||
int snd_pcm_record_format(snd_pcm_t *handle, snd_pcm_format_t * format);
|
||||
int snd_pcm_capture_format(snd_pcm_t *handle, snd_pcm_format_t * format);
|
||||
int snd_pcm_playback_params(snd_pcm_t *handle, snd_pcm_playback_params_t * params);
|
||||
int snd_pcm_record_params(snd_pcm_t *handle, snd_pcm_record_params_t * params);
|
||||
int snd_pcm_capture_params(snd_pcm_t *handle, snd_pcm_capture_params_t * params);
|
||||
int snd_pcm_playback_status(snd_pcm_t *handle, snd_pcm_playback_status_t * status);
|
||||
int snd_pcm_record_status(snd_pcm_t *handle, snd_pcm_record_status_t * status);
|
||||
int snd_pcm_capture_status(snd_pcm_t *handle, snd_pcm_capture_status_t * status);
|
||||
int snd_pcm_drain_playback(snd_pcm_t *handle);
|
||||
int snd_pcm_flush_playback(snd_pcm_t *handle);
|
||||
int snd_pcm_flush_record(snd_pcm_t *handle);
|
||||
int snd_pcm_flush_capture(snd_pcm_t *handle);
|
||||
int snd_pcm_playback_pause(snd_pcm_t *handle, int enable);
|
||||
int snd_pcm_playback_time(snd_pcm_t *handle, int enable);
|
||||
int snd_pcm_record_time(snd_pcm_t *handle, int enable);
|
||||
int snd_pcm_capture_time(snd_pcm_t *handle, int enable);
|
||||
ssize_t snd_pcm_write(snd_pcm_t *handle, const void *buffer, size_t size);
|
||||
ssize_t snd_pcm_read(snd_pcm_t *handle, void *buffer, size_t size);
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ ssize_t snd_pcm_read(snd_pcm_t *handle, void *buffer, size_t size);
|
|||
#endif
|
||||
|
||||
#define SND_PCM_LB_OPEN_PLAYBACK 0
|
||||
#define SND_PCM_LB_OPEN_RECORD 1
|
||||
#define SND_PCM_LB_OPEN_CAPTURE 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue