mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-22 12:33:29 +00:00
I think reloads occur after overflow, not before.
This commit is contained in:
parent
c2d093fa3c
commit
f2336d2efc
@ -53,10 +53,11 @@ void Dave::get_samples(std::size_t number_of_samples, int16_t *target) {
|
||||
// Step 1: divide input clock to 125,000 Hz (?)
|
||||
for(size_t c = 0; c < number_of_samples; c++) {
|
||||
#define update_channel(x) \
|
||||
--channels_[x].count; \
|
||||
if(!channels_[x].count) { \
|
||||
channels_[x].output ^= true; \
|
||||
channels_[x].count = channels_[x].reload; \
|
||||
} else { \
|
||||
--channels_[x].count; \
|
||||
}
|
||||
|
||||
update_channel(0);
|
||||
|
@ -73,6 +73,7 @@
|
||||
debugDocumentVersioning = "YES"
|
||||
migratedStopOnEveryIssue = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
enableGPUShaderValidationMode = "2"
|
||||
allowLocationSimulation = "NO">
|
||||
<BuildableProductRunnable
|
||||
runnableDebuggingMode = "0">
|
||||
|
Loading…
Reference in New Issue
Block a user