From 40d4c19a26257b49a68f4dfda8b8107347c3b378 Mon Sep 17 00:00:00 2001 From: Paul Dino Jones Date: Sun, 28 Jul 2024 11:18:41 -0400 Subject: [PATCH] Start sound devices with frequency set to 0 to avoid loud start ups --- src/monocoque/devices/sounddevice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/monocoque/devices/sounddevice.c b/src/monocoque/devices/sounddevice.c index b649436..5970861 100644 --- a/src/monocoque/devices/sounddevice.c +++ b/src/monocoque/devices/sounddevice.c @@ -124,13 +124,13 @@ int sounddev_init(SoundDevice* sounddevice, const char* devname, int volume, int slogi("duration is: %f", duration); - sounddevice->sounddata.frequency = frequency; + sounddevice->sounddata.frequency = 0; //sounddevice->sounddata.pitch = 1; //sounddevice->sounddata.pitch = 261.626; //sounddevice->sounddata.amp = 32; //sounddevice->sounddata.left_phase = sounddevice->sounddata.right_phase = 0; //sounddevice->sounddata.table_size = 48000/(100/60); - sounddevice->sounddata.curr_frequency = 100/60; + sounddevice->sounddata.curr_frequency = 0;