Skip to content

Add Sound Blaster 16 driver#781

Draft
vinc wants to merge 6 commits intotrunkfrom
feature/snd-sb16
Draft

Add Sound Blaster 16 driver#781
vinc wants to merge 6 commits intotrunkfrom
feature/snd-sb16

Conversation

@vinc
Copy link
Owner

@vinc vinc commented Sep 2, 2025

@vinc
Copy link
Owner Author

vinc commented Sep 2, 2025

We can now play a sound with either:

> read sound.pcm => /dev/snd/buf
> copy sound.pcm /dev/snd/buf

And stop it with either:

> read /dev/null => /dev/snd/buf
> copy /dev/null /dev/snd/buf

@vinc
Copy link
Owner Author

vinc commented Sep 2, 2025

Currently we can only play 22.1 kHz unsigned 8-bit mono PCM sounds.

They can be converted to the right format with the following command on Unix:

sox sound.mp3 -r 22050 -c 1 -b 8 -e unsigned-integer -t raw sound.pcm

The next step will be to add device file at /dev/snd/ini to set or get the current format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant