|
ginnOS
The reference: libc, the libraries and the kernel
|
the OSS sound interface: ioctl numbers and formats (ABI). More...
#include "common/stdint.h"Go to the source code of this file.
Data Structures | |
| struct | audio_buf_info |
| the free space for SNDCTL_DSP_GETOSPACE, in bytes of the caller's format. More... | |
Macros | |
| #define | AFMT_U8 0x00000008 |
| #define | AFMT_S16_LE 0x00000010 |
| #define | AFMT_S16_BE 0x00000020 |
| #define | SNDCTL_DSP_RESET 0x00005000u |
| #define | SNDCTL_DSP_SYNC 0x00005001u |
| #define | SNDCTL_DSP_SPEED 0xC0045002u |
| #define | SNDCTL_DSP_STEREO 0xC0045003u |
| #define | SNDCTL_DSP_GETBLKSIZE 0xC0045004u |
| #define | SNDCTL_DSP_SETFMT 0xC0045005u |
| #define | SNDCTL_DSP_CHANNELS 0xC0045006u |
| #define | SNDCTL_DSP_SETFRAGMENT 0xC004500Au |
| #define | SNDCTL_DSP_GETFMTS 0x8004500Bu |
| #define | SNDCTL_DSP_GETOSPACE 0x8010500Cu |
| #define | SNDCTL_DSP_GETISPACE 0x8010500Du |
| #define | SNDCTL_DSP_GETODELAY 0x80045017u |
| #define | SOUND_MIXER_READ_VOLUME 0x80044D00u |
| #define | SOUND_MIXER_WRITE_VOLUME 0xC0044D00u |
| #define | SOUND_MIXER_READ_DEVMASK 0x80044DFEu |
| #define | SOUND_MASK_VOLUME 0x00000001 |
the OSS sound interface: ioctl numbers and formats (ABI).
the numbers are the ones of the Open Sound System on Linux, so ported programs find the names they know. libc has a copy in <sys/soundcard.h>; the two must stay the same.
| #define AFMT_U8 0x00000008 |
| #define AFMT_S16_LE 0x00000010 |
| #define AFMT_S16_BE 0x00000020 |
| #define SNDCTL_DSP_RESET 0x00005000u |
| #define SNDCTL_DSP_SYNC 0x00005001u |
| #define SNDCTL_DSP_SPEED 0xC0045002u |
| #define SNDCTL_DSP_STEREO 0xC0045003u |
| #define SNDCTL_DSP_GETBLKSIZE 0xC0045004u |
| #define SNDCTL_DSP_SETFMT 0xC0045005u |
| #define SNDCTL_DSP_CHANNELS 0xC0045006u |
| #define SNDCTL_DSP_SETFRAGMENT 0xC004500Au |
| #define SNDCTL_DSP_GETFMTS 0x8004500Bu |
| #define SNDCTL_DSP_GETOSPACE 0x8010500Cu |
| #define SNDCTL_DSP_GETISPACE 0x8010500Du |
| #define SNDCTL_DSP_GETODELAY 0x80045017u |
| #define SOUND_MIXER_READ_VOLUME 0x80044D00u |
| #define SOUND_MIXER_WRITE_VOLUME 0xC0044D00u |
| #define SOUND_MIXER_READ_DEVMASK 0x80044DFEu |
| #define SOUND_MASK_VOLUME 0x00000001 |