Well, so I thought. If I wire in an unsigned 16bit mono sample and program the speaker timer output channel with 16 bit values each IRQ0 tick, then the result is a complete silence from the speaker. If I switch the endianness or use signed PCM without changing the code, then there's some crackling going on, so it must be doing something - but that's about it. Now, the PCjr also contains an SN76489 for 3 squarewaves and 1 noise generator, like the later Tandy 1000 or Sega, but there were past experiments to play digitized sound over that
already. But I'm no sound expert, my knowledge ends somewhere around recording Hello World onto an Edison wax cylinder.
Also, the fastest way to detect a keypress, without slowing down the play routine for the 8088 by calling INT 16h, or hooking IRQ1 which will mess up the Junior due to its unorthodox wireless keyboard handling, is to compare pointers to the cyclic keyboard buffer queue in the BIOS BDA. If these two point to the same offset, then there's no keypress - or else adiós to the DOS prompt.
Oh, and the sound snippet in the experiment below is the
"Panzermensch".