Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Need Help Adding Background Music to a game

I made a hunting game and i found that the game cannot run sounds longer than about 3 seconds. I searched around and i still cannot find any codes to add longer wav files
How do you add background music to a C++ Graphics Program?

Comments

  • MT2002MT2002 Member Posts: 1,444
    [b][red]This message was edited by MT2002 at 2005-5-5 13:4:48[/red][/b][hr]
    : I made a hunting game and i found that the game cannot run sounds longer than about 3 seconds. I searched around and i still cannot find any codes to add longer wav files
    : How do you add background music to a C++ Graphics Program?
    :
    [blue]
    You could try the Win32 API or DirectX. With the Win32 API
    all you need is this:[/blue][code]
    PlaySound ("Sound.wav", NULL, SND_FILENAME|SND_ASYNC);
    [/code][blue]
    DirectSound/DrectMusic are far more powerfull, but are
    much harder to learn.[/blue]


Sign In or Register to comment.