1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

I think reloads occur after overflow, not before.

This commit is contained in:
Thomas Harte 2021-06-26 23:16:00 -04:00
parent c2d093fa3c
commit f2336d2efc
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -73,6 +73,7 @@
debugDocumentVersioning = "YES"
migratedStopOnEveryIssue = "YES"
debugServiceExtension = "internal"
enableGPUShaderValidationMode = "2"
allowLocationSimulation = "NO">
<BuildableProductRunnable
runnableDebuggingMode = "0">