As a child I've played one DOS game called Electro Body.
The game did something amazing - it played back PCM samples through the PC speaker. Not the crappy square beeps - it played real sound effects!
It was super quiet in comparison to the usual beeps that the PC speaker makes, but it was a completely new quality of sound. I never heard anything like that before or after that game.
I wonder - if there is a way in GNU/Linux to play arbitrary PCM sound streams through the PC speaker apart from just "beeps" that the beep command makes? Can I play WAV or Ogg files through that?
Apart from the fact that it'd be cool to make some sophisticated noises, one could probably use this as an analogue voltage control output - for whatever crazy DIY project.
/dev/input/eventX
on Linux, and in principle it should be possible to write a program which renders arbitrary PCM sound this way, e.g. providing a Pulseaudio or ALSA interface, but I don't know of any existing one. – dirkt Mar 24 '17 at 13:51snd-pcsp
kernel module which claims to do this, but I couldn't get any recognizable sound out of my speaker this way. – dirkt Mar 24 '17 at 14:05