How can i add tones to my pc's sound card

Similar to beep(440,1000), but sound in sound card, not pc speaker.