mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
Always start sound.
This commit is contained in:
parent
e08090095f
commit
b609065bc4
@ -460,6 +460,33 @@ extern void io_write(uaecptr addr, uae_u32 b, int width_bits) {
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if(soundRunning == 0) {
|
||||
int32 depthA = fifoInA - fifoWriteA;
|
||||
|
||||
soundRunning = 1;
|
||||
downsample = 0;
|
||||
|
||||
if(zeros[0] == 0) {
|
||||
memset(zeros, 128, sizeof(zeros));
|
||||
}
|
||||
|
||||
asc_init(22050);
|
||||
|
||||
ascBufferSize = asc_get_buffer_size();
|
||||
|
||||
if(depthA >= ascBufferSize) {
|
||||
asc_process_samples(&fifoA[fifoWriteA % fifoCapacity],
|
||||
ascBufferSize);
|
||||
fifoWriteA += ascBufferSize;
|
||||
underrun = 0;
|
||||
} else {
|
||||
underrun = 1;
|
||||
asc_process_samples(zeros, ascBufferSize);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user