A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Yes, Stereo Mix still works, but it's a different thing from WASAPI loopback, and that explains both of your questions.
Stereo Mix isn't a Windows feature. It's a loopback capture device that your audio driver (usually Realtek) provides. Microsoft's Core Audio docs call these "hardware loopback devices" and list "Stereo Mix" as one of the vendor names for them. To Windows it looks like a microphone: a normal capture device with its own format. WASAPI loopback is built into Windows instead. It captures the system mix the audio engine is sending to your speakers or headphones, and it works on any output device, whether or not the driver offers Stereo Mix.
On quality:
- With Stereo Mix, the audio goes through the driver's loopback path and is delivered in the format set for that device. In your case that's 16-bit, at whichever of 48, 96 or 192 kHz is selected. Depending on the driver, the signal may also pick up resampling or the driver's own processing.
- With WASAPI loopback, you get a copy of the audio engine's output stream for that playback device, in the device's shared-mode mix format. In practice that's usually the cleaner, more predictable source, which is why recording apps prefer it.
On 24-bit: if Stereo Mix is delivering 16-bit and your software is set to 24-bit, the file will be 24-bit, but the extra bits carry no extra detail. The 16-bit samples are just converted (padded) into a 24-bit container. You can't get more resolution than the source device delivers. If you want genuine 24-bit capture, use WASAPI loopback on the playback device. Then set that playback device's Default Format to 24-bit (Sound settings > your output device > Properties > Advanced) at the sample rate you want.
So, for quality and reliability, I'd use WASAPI loopback if your recording software supports it. Keep Stereo Mix for older apps that can only record from an input device.