Lab 6: AC97-lite PCM Audio
Generated folder: labs/audio/
Lab 6 introduces audio as a stream of samples. Instead of drawing pixels into a framebuffer, you fill an audio buffer with PCM data and ask the runtime to play it.
Device Model
| Concept | Meaning |
|---|---|
| PCM sample | numeric amplitude at one point in time |
| sample rate | samples per second |
| channel count | mono or stereo layout |
| buffer | mapped memory for samples |
| byte count | amount the device should consume |
Plan
- Map the audio buffer.
- Validate frequency and duration.
- Convert milliseconds into sample count.
- Generate a square wave.
- Start and stop playback.
Next: implementation tasks.