|
|
| version 1.1, 2003/10/16 17:58:29 | version 1.3, 2004/01/13 05:30:58 |
|---|---|
| Line 2 | Line 2 |
| #include "soundmng.h" | #include "soundmng.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "fdd_mtr.h" | #include "fdd_mtr.h" |
| #if defined(SUPPORT_WAVEMIX) | |
| #include "wavemix.h" | |
| #endif | |
| int fddmtr_biosbusy = 0; // ver0.26 | int fddmtr_biosbusy = 0; // ver0.26 |
| Line 20 static void fddmtr_event(void) { | Line 23 static void fddmtr_event(void) { |
| switch(mtr_curevent) { | switch(mtr_curevent) { |
| case 100: | case 100: |
| #if defined(SUPPORT_WAVEMIX) | |
| wavemix_stop(SOUND_PCMSEEK); | |
| #else | |
| soundmng_pcmstop(SOUND_PCMSEEK); | soundmng_pcmstop(SOUND_PCMSEEK); |
| #endif | |
| mtr_curevent = 0; | mtr_curevent = 0; |
| break; | break; |
| Line 59 void fddmtr_seek(BYTE drv, BYTE c, UINT | Line 66 void fddmtr_seek(BYTE drv, BYTE c, UINT |
| FDC_HEAD[curdrv] = c; | FDC_HEAD[curdrv] = c; |
| } | } |
| if (!np2cfg.MOTOR) { | if (!np2cfg.MOTOR) { |
| SINT32 s = size * pc.multiple; | SINT32 s = size * pccore.multiple; |
| if (s) { // ver0.28 | if (s) { // ver0.28 |
| fddmtr_biosbusy = 1; | fddmtr_biosbusy = 1; |
| nevent_set(NEVENT_FDBIOSBUSY, s, fdbiosout, NEVENT_ABSOLUTE); | nevent_set(NEVENT_FDBIOSBUSY, s, fdbiosout, NEVENT_ABSOLUTE); |
| Line 73 void fddmtr_seek(BYTE drv, BYTE c, UINT | Line 80 void fddmtr_seek(BYTE drv, BYTE c, UINT |
| if (regmove == 1) { | if (regmove == 1) { |
| if (mtr_curevent < 80) { | if (mtr_curevent < 80) { |
| fddmtr_event(); | fddmtr_event(); |
| #if defined(SUPPORT_WAVEMIX) | |
| wavemix_play(SOUND_PCMSEEK1, FALSE); | |
| #else | |
| soundmng_pcmplay(SOUND_PCMSEEK1, FALSE); | soundmng_pcmplay(SOUND_PCMSEEK1, FALSE); |
| #endif | |
| mtr_curevent = 80; | mtr_curevent = 80; |
| nextevent = GETTICK() + MOVEMOTOR1_MS; | nextevent = GETTICK() + MOVEMOTOR1_MS; |
| } | } |
| Line 81 void fddmtr_seek(BYTE drv, BYTE c, UINT | Line 92 void fddmtr_seek(BYTE drv, BYTE c, UINT |
| else if (regmove) { | else if (regmove) { |
| if (mtr_curevent < 100) { | if (mtr_curevent < 100) { |
| fddmtr_event(); | fddmtr_event(); |
| #if defined(SUPPORT_WAVEMIX) | |
| wavemix_play(SOUND_PCMSEEK, TRUE); | |
| #else | |
| soundmng_pcmplay(SOUND_PCMSEEK, TRUE); | soundmng_pcmplay(SOUND_PCMSEEK, TRUE); |
| #endif | |
| mtr_curevent = 100; | mtr_curevent = 100; |
| nextevent = GETTICK() + (regmove * MOVE1TCK_MS); | nextevent = GETTICK() + (regmove * MOVE1TCK_MS); |
| } | } |