forked from KyoriAsh/uth05win
-
Notifications
You must be signed in to change notification settings - Fork 1
GameLib_PMDPlayer
박상희 (Alex Park) edited this page Jan 28, 2019
·
1 revision
PMDPlayer Utilizes DirectX Sound and uses external Library called (PMDWin.dll)
Disclaimer.
As the PMDWin.dll is NOT thread-safe, this class has all members static and constructor private.
construction/destruction is done via static functions Initialize/Finalize.
This class itself is also not thread safe. Be sure not to make simultaneous calls from multiple threads.
(HWND hWnd)
Initialize the PMDPlayer
(char *musicData)
Load PMDPlayer's music with provided musicData
()
Unload Music from MMDPlayer
()
Play Loaded Music
()
Pause Playing Music
()
Resume Playing Music
()
Check the disclaimer above.
(int newFreq)
Does Nothing. (Currently)
(float volume)
set the volume
()
()
(int nPriority)
Sets Priority of the Player Thread
(int nSample)
1 sample occupies 4 bytes, return false if software buffer when it is full