forked from hifi-unmaintained/ogg-winmm
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't call Load/FreeLibrary from DllMain
Other thread related stuff has been altered as well. The music player thread now persists after playback is stopped. It is suspended until the next MCI_PLAY command, instead of a new thread being made for each MCI_PLAY command. This fixes a deadlock case when playback was stopped and played several times in very short succession.
- Loading branch information
Showing
4 changed files
with
605 additions
and
555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
#ifndef PLAYER_H | ||
#define PLAYER_H | ||
|
||
void plr_stop(); | ||
void plr_volume(int vol); | ||
int plr_pump(); | ||
int plr_length(const char *path); | ||
int plr_play(const char *path); | ||
|
||
void setWinmmDll(HINSTANCE inPtr); | ||
#endif |
Oops, something went wrong.