winapi

winapi 소리, 사운드, 음악

blackbearwow 2020. 12. 15. 02:16

기본적으로 PlaySound()라는 함수를 이용하면 된다.

docs.microsoft.com/en-us/previous-versions/dd743680(v=vs.85)

 

PlaySound function (Windows)

PlaySound function 06/06/2016 4 minutes to read In this article --> The PlaySound function plays a sound specified by the given file name, resource, or system event. (A system event may be associated with a sound in the registry or in the WIN.INI file.) Sy

docs.microsoft.com

 

그런데 이 PlaySound()함수는 wave파일만 재생가능 할 뿐 아니라, 두 소리를 동시에 내기 못한다. (배경음+효과음 불가!)

그래서 mci라는것을 사용하면 될 것이다.