mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
oops forgot the calls too
This commit is contained in:
@@ -35,14 +35,14 @@ BOOL StartDirectSound(void)
|
|||||||
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
|
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
|
||||||
{
|
{
|
||||||
// Look for another instance, if we find one, bring it to the foreground instead
|
// Look for another instance, if we find one, bring it to the foreground instead
|
||||||
if (!findExistingInstance()) {
|
if (!FindExistingInstance()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attempt to create DirectSound instance
|
// Attempt to create DirectSound instance
|
||||||
BOOL soundReady = FALSE;
|
BOOL soundReady = FALSE;
|
||||||
for (int i = 0; i < 20; i++) {
|
for (int i = 0; i < 20; i++) {
|
||||||
if (startDirectSound()) {
|
if (StartDirectSound()) {
|
||||||
soundReady = TRUE;
|
soundReady = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user