The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
soundcard.h File Reference

the OSS sound interface: ioctl numbers and formats (ABI). More...

#include <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

Detailed Description

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. the kernel has a copy in src/kernel/audio/soundcard.h; the two must stay the same.

Macro Definition Documentation

◆ AFMT_U8

#define AFMT_U8   0x00000008

◆ AFMT_S16_LE

#define AFMT_S16_LE   0x00000010

◆ AFMT_S16_BE

#define AFMT_S16_BE   0x00000020

◆ SNDCTL_DSP_RESET

#define SNDCTL_DSP_RESET   0x00005000u

◆ SNDCTL_DSP_SYNC

#define SNDCTL_DSP_SYNC   0x00005001u

◆ SNDCTL_DSP_SPEED

#define SNDCTL_DSP_SPEED   0xC0045002u

◆ SNDCTL_DSP_STEREO

#define SNDCTL_DSP_STEREO   0xC0045003u

◆ SNDCTL_DSP_GETBLKSIZE

#define SNDCTL_DSP_GETBLKSIZE   0xC0045004u

◆ SNDCTL_DSP_SETFMT

#define SNDCTL_DSP_SETFMT   0xC0045005u

◆ SNDCTL_DSP_CHANNELS

#define SNDCTL_DSP_CHANNELS   0xC0045006u

◆ SNDCTL_DSP_SETFRAGMENT

#define SNDCTL_DSP_SETFRAGMENT   0xC004500Au

◆ SNDCTL_DSP_GETFMTS

#define SNDCTL_DSP_GETFMTS   0x8004500Bu

◆ SNDCTL_DSP_GETOSPACE

#define SNDCTL_DSP_GETOSPACE   0x8010500Cu

◆ SNDCTL_DSP_GETISPACE

#define SNDCTL_DSP_GETISPACE   0x8010500Du

◆ SNDCTL_DSP_GETODELAY

#define SNDCTL_DSP_GETODELAY   0x80045017u

◆ SOUND_MIXER_READ_VOLUME

#define SOUND_MIXER_READ_VOLUME   0x80044D00u

◆ SOUND_MIXER_WRITE_VOLUME

#define SOUND_MIXER_WRITE_VOLUME   0xC0044D00u

◆ SOUND_MIXER_READ_DEVMASK

#define SOUND_MIXER_READ_DEVMASK   0x80044DFEu

◆ SOUND_MASK_VOLUME

#define SOUND_MASK_VOLUME   0x00000001