Skip to content

Commit

Permalink
Modify deviceConfig to actually alter the NoAutoConvertSRC flag
Browse files Browse the repository at this point in the history
  • Loading branch information
intermernet committed Nov 18, 2023
1 parent 8f5d1f8 commit 7235d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions device_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func DefaultDeviceConfig(deviceType DeviceType) DeviceConfig {
deviceConfig.Capture.ChannelMap = unsafe.Pointer(config.capture.pChannelMap)
deviceConfig.Capture.ShareMode = ShareMode(config.capture.shareMode)

deviceConfig.Wasapi.NoAutoConvertSRC = uint32(config.wasapi.noHardwareOffloading)
deviceConfig.Wasapi.NoAutoConvertSRC = uint32(config.wasapi.noAutoConvertSRC)
deviceConfig.Wasapi.NoDefaultQualitySRC = uint32(config.wasapi.noDefaultQualitySRC)
deviceConfig.Wasapi.NoAutoStreamRouting = uint32(config.wasapi.noAutoStreamRouting)
deviceConfig.Wasapi.NoHardwareOffloading = uint32(config.wasapi.noHardwareOffloading)
Expand Down Expand Up @@ -120,7 +120,7 @@ func (d *DeviceConfig) toC() (C.ma_device_config, func()) {
deviceConfig.capture.pChannelMap = (*C.ma_channel)(d.Capture.ChannelMap)
deviceConfig.capture.shareMode = C.ma_share_mode(d.Capture.ShareMode)

deviceConfig.wasapi.noAutoConvertSRC = C.uchar(d.Wasapi.NoHardwareOffloading)
deviceConfig.wasapi.noAutoConvertSRC = C.uchar(d.Wasapi.NoAutoConvertSRC)
deviceConfig.wasapi.noDefaultQualitySRC = C.uchar(d.Wasapi.NoDefaultQualitySRC)
deviceConfig.wasapi.noAutoStreamRouting = C.uchar(d.Wasapi.NoAutoStreamRouting)
deviceConfig.wasapi.noHardwareOffloading = C.uchar(d.Wasapi.NoHardwareOffloading)
Expand Down

0 comments on commit 7235d9f

Please sign in to comment.