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