From 477741dae25a7d16580c18aa537f701d2b20ff7d Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 8 Apr 2024 12:08:36 -0600 Subject: [PATCH] Try default values --- cmd/client/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/client/main.go b/cmd/client/main.go index bbc1855..d15709c 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -59,8 +59,8 @@ func main() { } inDeviceConfig := malgo.DefaultDeviceConfig(malgo.Capture) - inDeviceConfig.Capture.Format = capture_device.Formats[0].Format - inDeviceConfig.Capture.Channels = capture_device.Formats[0].Channels + inDeviceConfig.Capture.Format = malgo.FormatF32 + inDeviceConfig.Capture.Channels = 1 inDeviceConfig.Capture.DeviceID = capture_device.ID.Pointer() inDeviceConfig.SampleRate = capture_device.Formats[0].SampleRate inDeviceConfig.PeriodSizeInFrames = 100 @@ -68,8 +68,8 @@ func main() { inDeviceConfig.Capture.ShareMode = malgo.Shared outDeviceConfig := malgo.DefaultDeviceConfig(malgo.Playback) - outDeviceConfig.Playback.Format = playback_device.Formats[0].Format - outDeviceConfig.Playback.Channels = playback_device.Formats[0].Channels + outDeviceConfig.Playback.Format = malgo.FormatF32 + outDeviceConfig.Playback.Channels = 1 outDeviceConfig.Playback.DeviceID = playback_device.ID.Pointer() outDeviceConfig.SampleRate = playback_device.Formats[0].SampleRate outDeviceConfig.PeriodSizeInFrames = 100