Hello, I'm generally new to C++ programming and have recently made a basic program which parses a text file in order to play simple melodies using Windows.h defined Beep and Sleep, similar to midi.
The program works as intended but the Beep function doesn't work on certain operating systems such as Windows XP and Vista. What I'm hoping to do is interface with my sound card via drivers and play very primitive sounds that way, however, I have no idea where to even begin to accomplish this.
Do you mean using wave output or the system speaker? The system speaker is controlled by the BIOS, not the sound card, so I assume you mean wave output.
You can take a look at OpenAL. It makes it surprisingly simple to write audio players, and you don't have to concern yourself with such menial details as drivers.