Play Sound (WINDOWS)

4

How do I play sound in a program developed in the C / C ++ language? Environment (WINDOWS)

    
asked by anonymous 13.05.2015 / 19:19

1 answer

4

The PlaySound function plays a sound specified by the given file name. take a look at the MSDN data for better information - > PlaySound MSDN

Example:

PlaySound(TEXT("HYPNOS_BGM\new_connection.wav"), NULL, SND_SYNC);
    
13.05.2015 / 19:20