summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-02-27 16:49:07 +0100
committerMitya Selivanov <automainint@guattari.tech>2024-02-27 16:49:07 +0100
commit5595f9a4a547d6c7bd33a8b4215186b27e955c49 (patch)
tree9cff328c4e1b2498fbc4139f05815b96f6457899 /source
parent03c1c68746ce12b5eccb46bf4fcb9e8219c16530 (diff)
downloadsaw-5595f9a4a547d6c7bd33a8b4215186b27e955c49.zip
Fix project file formatting; Increase buffer size
Diffstat (limited to 'source')
-rw-r--r--source/saw/main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source/saw/main.c b/source/saw/main.c
index 1a51aeb..838b4fe 100644
--- a/source/saw/main.c
+++ b/source/saw/main.c
@@ -70,11 +70,7 @@ enum {
CHANNEL_COUNT = 2,
SAMPLE_RATE = 44100,
-#ifdef __EMSCRIPTEN__
- BUFFER_SIZE = 1024 * 16,
-#else
- BUFFER_SIZE = 1024 * 8,
-#endif
+ BUFFER_SIZE = 1024 * 16,
REFERENCE_PITCH_INDEX = 5 * 12, // index of A_4
@@ -3070,8 +3066,8 @@ static void saw_cleanup(void) {
fprintf(f, "time %lld\n", roll->time);
fprintf(f, "duration %lld\n", roll->duration);
fprintf(f, "loop_duration %lld\n", roll->loop_duration);
- fprintf(f, "ui_offset %lld %lld\n\n",
- roll->ui_offset_x, roll->ui_offset_y);
+ fprintf(f, "ui_offset %lld %lld\n\n", roll->ui_offset_x,
+ roll->ui_offset_y);
}
// Save tracks