mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-21 04:29:34 +00:00
Inserts an additional reload.
This commit is contained in:
parent
a5fe1e4259
commit
f02a241249
@ -482,12 +482,14 @@ void Audio::Channel::decrement_length() {
|
|||||||
// if (not lenfin) and AUDxON and AUDxDAT, then lencount
|
// if (not lenfin) and AUDxON and AUDxDAT, then lencount
|
||||||
// if lenfin and AUDxON and AUDxDAT, then intreq2
|
// if lenfin and AUDxON and AUDxDAT, then intreq2
|
||||||
if(dma_enabled && !wants_data) {
|
if(dma_enabled && !wants_data) {
|
||||||
if(length_counter == 1) {
|
-- length_counter;
|
||||||
|
|
||||||
|
if(!length_counter) {
|
||||||
length_counter = length;
|
length_counter = length;
|
||||||
will_request_interrupt = true;
|
will_request_interrupt = true;
|
||||||
|
should_reload_address = true; // This feels logical to me; it's a bit
|
||||||
|
// of a stab in the dark though.
|
||||||
}
|
}
|
||||||
|
|
||||||
--length_counter;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user