Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How do the device files know what format the audio data is in?


It doesn't, it just plays the data as PCM and with whatever sample format and sample rate it is currently configured for.


I'd guess the device files just pass through the binary data to the hardware, and then it's up to the audio device/driver what their defaults are (probably PCM 16-bit 44.1khz)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: