Platform/사운드
-
-
-
DirectXPlatform/사운드 2009. 1. 21. 01:02
#define _STLP_NEW_PLATFORM_SDK 1 #include #include #include #include char c_szClassName[] = "사운드출력" ; HINSTANCE g_hInst ; BOOL g_bPaused = TRUE ; LPDIRECTINPUT g_lpDirectInput ; LPDIRECTINPUTDEVICE g_lpKeyboard ; char g_szText[1024] = "00" ; int X_pos, Y_pos ; #define KEYDOWN(State,KeyID) (State[KeyID] & 0x80) #ifdef DS #define NUM_SOUNDS 5 #define SPACE 0 #define LEFT 1 #define RIGHT 2 #define ..
-
사운드Platform/사운드 2009. 1. 18. 21:06
MessageBeep() sndPlaySound() MCI(?) #include // winmm.lib BOOL PlayMidi (char *sFileName) { char buf[256] ; sprintf (buf, "open %s type sequencer alias MUSIC", sFileName) ; if (mciSendString ("close all", NULL, 0, NULL) != 0) { return FALSE ; } if (mciSendString (buf, NULL, 0, NULL) != 0) { return FALSE ; } if (mciSendString ("play MUSIC from 0", NULL, 0, g_hWnd) != 0) { return FALSE ; } return ..