Pulse output through the audio jack

Does anyone know of a code snippet that will send a pulse to either the left or right channel of the audio jack and stop the pulse when desired?
Platform is windows 7 or 8.
A super cheap way, but is looked down on because it uses "Windows.h"
is to use MessageBeep(0xFFFFFFFF);, it just creates a beep.

Otherwise, you can use an audio api (SDL with SDL_mixer as an example), and you can use Audacity, and select generate, and choose chirp and create a quick beep( SDL_mixer is optimized with .ogg format, and you need to download some dll for encoding in mp3 on Audacity ).
Topic archived. No new replies allowed.