Try default values

live
noah metz 2024-04-08 12:08:36 -06:00
parent 79f8e5aeeb
commit 477741dae2
1 changed files with 4 additions and 4 deletions

@ -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