summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.c b/main.c
index 66dc26b..35bfe10 100644
--- a/main.c
+++ b/main.c
@@ -975,6 +975,8 @@ static void *sound_thread(void *vdata) {
if (samples_R->count != samples_L->count) {
warn("Sample count for left channel doesn't match sample count for right channel.");
in_R = in_L;
+ samples_R = samples_L;
+ instrument->samples[2*n+1] = instrument->samples[2*n];
}
u32 pos = note->pos;