mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +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 (?)
|
// Step 1: divide input clock to 125,000 Hz (?)
|
||||||
for(size_t c = 0; c < number_of_samples; c++) {
|
for(size_t c = 0; c < number_of_samples; c++) {
|
||||||
#define update_channel(x) \
|
#define update_channel(x) \
|
||||||
--channels_[x].count; \
|
|
||||||
if(!channels_[x].count) { \
|
if(!channels_[x].count) { \
|
||||||
channels_[x].output ^= true; \
|
channels_[x].output ^= true; \
|
||||||
channels_[x].count = channels_[x].reload; \
|
channels_[x].count = channels_[x].reload; \
|
||||||
|
} else { \
|
||||||
|
--channels_[x].count; \
|
||||||
}
|
}
|
||||||
|
|
||||||
update_channel(0);
|
update_channel(0);
|
||||||
|
@ -73,6 +73,7 @@
|
|||||||
debugDocumentVersioning = "YES"
|
debugDocumentVersioning = "YES"
|
||||||
migratedStopOnEveryIssue = "YES"
|
migratedStopOnEveryIssue = "YES"
|
||||||
debugServiceExtension = "internal"
|
debugServiceExtension = "internal"
|
||||||
|
enableGPUShaderValidationMode = "2"
|
||||||
allowLocationSimulation = "NO">
|
allowLocationSimulation = "NO">
|
||||||
<BuildableProductRunnable
|
<BuildableProductRunnable
|
||||||
runnableDebuggingMode = "0">
|
runnableDebuggingMode = "0">
|
||||||
|
Loading…
Reference in New Issue
Block a user