|
|
@ -59,8 +59,8 @@ func main() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
inDeviceConfig := malgo.DefaultDeviceConfig(malgo.Capture)
|
|
|
|
inDeviceConfig := malgo.DefaultDeviceConfig(malgo.Capture)
|
|
|
|
inDeviceConfig.Capture.Format = capture_device.Formats[0].Format
|
|
|
|
inDeviceConfig.Capture.Format = malgo.FormatF32
|
|
|
|
inDeviceConfig.Capture.Channels = capture_device.Formats[0].Channels
|
|
|
|
inDeviceConfig.Capture.Channels = 1
|
|
|
|
inDeviceConfig.Capture.DeviceID = capture_device.ID.Pointer()
|
|
|
|
inDeviceConfig.Capture.DeviceID = capture_device.ID.Pointer()
|
|
|
|
inDeviceConfig.SampleRate = capture_device.Formats[0].SampleRate
|
|
|
|
inDeviceConfig.SampleRate = capture_device.Formats[0].SampleRate
|
|
|
|
inDeviceConfig.PeriodSizeInFrames = 100
|
|
|
|
inDeviceConfig.PeriodSizeInFrames = 100
|
|
|
@ -68,8 +68,8 @@ func main() {
|
|
|
|
inDeviceConfig.Capture.ShareMode = malgo.Shared
|
|
|
|
inDeviceConfig.Capture.ShareMode = malgo.Shared
|
|
|
|
|
|
|
|
|
|
|
|
outDeviceConfig := malgo.DefaultDeviceConfig(malgo.Playback)
|
|
|
|
outDeviceConfig := malgo.DefaultDeviceConfig(malgo.Playback)
|
|
|
|
outDeviceConfig.Playback.Format = playback_device.Formats[0].Format
|
|
|
|
outDeviceConfig.Playback.Format = malgo.FormatF32
|
|
|
|
outDeviceConfig.Playback.Channels = playback_device.Formats[0].Channels
|
|
|
|
outDeviceConfig.Playback.Channels = 1
|
|
|
|
outDeviceConfig.Playback.DeviceID = playback_device.ID.Pointer()
|
|
|
|
outDeviceConfig.Playback.DeviceID = playback_device.ID.Pointer()
|
|
|
|
outDeviceConfig.SampleRate = playback_device.Formats[0].SampleRate
|
|
|
|
outDeviceConfig.SampleRate = playback_device.Formats[0].SampleRate
|
|
|
|
outDeviceConfig.PeriodSizeInFrames = 100
|
|
|
|
outDeviceConfig.PeriodSizeInFrames = 100
|
|
|
|