|
|
| version 1.7, 2003/10/25 19:10:37 | version 1.9, 2003/11/28 08:01:33 |
|---|---|
| Line 37 static void streamreset(void) { | Line 37 static void streamreset(void) { |
| sndstream.ptr = sndstream.buffer; | sndstream.ptr = sndstream.buffer; |
| sndstream.remain = sndstream.samples + sndstream.reserve; | sndstream.remain = sndstream.samples + sndstream.reserve; |
| sndstream.cbreg = sndstream.cb; | sndstream.cbreg = sndstream.cb; |
| SNDCSEC_TERM; | SNDCSEC_LEAVE; |
| } | } |
| static void streamprepare(UINT samples) { | static void streamprepare(UINT samples) { |
| Line 208 const SINT32 *sound_pcmlock(void) { | Line 208 const SINT32 *sound_pcmlock(void) { |
| const SINT32 *ret; | const SINT32 *ret; |
| if (locks) { | if (locks) { |
| TRACEOUT(("sound pcm lock: already locked")); | |
| return(NULL); | return(NULL); |
| } | } |
| locks++; | locks++; |
| Line 220 const SINT32 *ret; | Line 221 const SINT32 *ret; |
| beep_eventreset(); | beep_eventreset(); |
| } | } |
| } | } |
| else { | |
| locks--; | |
| } | |
| return(ret); | return(ret); |
| } | } |