foxygit / doom Log in
commit b796c64d34847434d053aeacca5b6ec10ace2450
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Tue Mar 10 22:20:32 2009 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Tue Mar 10 22:20:32 2009 +0000

    Add delay to allow OPL detection to work.

    Subversion-branch: /branches/opl-branch
    Subversion-revision: 1461
---
 src/i_oplmusic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/i_oplmusic.c b/src/i_oplmusic.c
index 5b3ae041..7ead7f02 100644
--- a/src/i_oplmusic.c
+++ b/src/i_oplmusic.c
@@ -175,6 +175,7 @@ static boolean DetectOPL(void)
     WriteRegister(OPL_REG_TIMER_CTRL, 0x21);

     // Wait for 80 microseconds
+    SDL_Delay(1);

     // Read status
     result2 = GetStatus();