# x86-64 Sound

[x86-64 Documentation](https://asm-editor.specy.app/documentation/x86.md)

Web page: https://asm-editor.specy.app/documentation/x86/sound

Play PC speaker tones, MIDI notes or audio samples. Configure playback buffering and volume through /dev/dsp and /dev/mixer.

8 entries, each with its own page of markdown:

- [Sound](https://asm-editor.specy.app/documentation/x86/sound/overview.md): An x86 program plays sound through Linux device interfaces.
- [The PC speaker](https://asm-editor.specy.app/documentation/x86/sound/speaker.md): The speaker is an input device, /dev/input/by-path/platform-pcspkr-event-spkr, that the program writes to.
- [The MIDI port](https://asm-editor.specy.app/documentation/x86/sound/midi.md): MIDI is how a program tells a synthesizer what to play, in messages of a few bytes.
- [/dev/dsp: samples](https://asm-editor.specy.app/documentation/x86/sound/dsp.md): A sound is a wave: the air pressure going up and down hundreds or thousands of times a second.
- [Fragments and latency](https://asm-editor.specy.app/documentation/x86/sound/fragments.md): The playback buffer is divided into fragments.
- [/dev/mixer: the volume](https://asm-editor.specy.app/documentation/x86/sound/mixer.md): /dev/mixer sets the volume of /dev/dsp's sound.
- [What is different from a real Linux machine](https://asm-editor.specy.app/documentation/x86/sound/differences.md): The devices behave as they do on a QEMU virtual machine running Linux, the reference this emulator follows.
- [Not covered](https://asm-editor.specy.app/documentation/x86/sound/not-covered.md): ALSA PCM, control and sequencer devices, including /dev/snd/pcmC0D0p, /dev/snd/controlC0 and /dev/snd/seq, are unavailable.
