|
|
| version 1.1, 2004/08/01 05:31:31 | version 1.2, 2004/08/05 11:46:26 |
|---|---|
| Line 225 void sound_reset(void) { | Line 225 void sound_reset(void) { |
| if (sndstream.buffer) { | if (sndstream.buffer) { |
| soundmng_reset(); | soundmng_reset(); |
| streamreset(); | streamreset(); |
| soundcfg.length = 0; | |
| // soundcfg.lastclock = CPU_CLOCK; | // soundcfg.lastclock = CPU_CLOCK; |
| // beep_eventreset(); | |
| } | } |
| } | } |
| Line 313 void sound_sync(void) { | Line 313 void sound_sync(void) { |
| void sound_makesample(UINT length) { | void sound_makesample(UINT length) { |
| soundcfg.length += length; | |
| } | |
| void sound_sync(void) { | |
| UINT length; | |
| length = soundcfg.length; | |
| if (length == 0) { | |
| return; | |
| } | |
| if (sndstream.buffer == NULL) { | if (sndstream.buffer == NULL) { |
| return; | return; |
| } | } |
| Line 325 void sound_makesample(UINT length) { | Line 336 void sound_makesample(UINT length) { |
| #endif | #endif |
| streamprepare(length); | streamprepare(length); |
| // soundcfg.lastclock += length * soundcfg.clockbase / soundcfg.hzbase; | // soundcfg.lastclock += length * soundcfg.clockbase / soundcfg.hzbase; |
| soundcfg.length = 0; | |
| SNDCSEC_LEAVE; | SNDCSEC_LEAVE; |
| soundcfg.writecount += length; | soundcfg.writecount += length; |
| Line 358 const SINT32 *ret; | Line 370 const SINT32 *ret; |
| #endif | #endif |
| { | { |
| streamprepare(sndstream.remain - sndstream.reserve); | streamprepare(sndstream.remain - sndstream.reserve); |
| soundcfg.length = 0; | |
| // soundcfg.lastclock = CPU_CLOCK + CPU_BASECLOCK - CPU_REMCLOCK; | // soundcfg.lastclock = CPU_CLOCK + CPU_BASECLOCK - CPU_REMCLOCK; |
| // beep_eventreset(); | |
| } | } |
| } | } |
| else { | else { |