Skip to content

Commit

Permalink
Merge pull request #47 from intermernet/master
Browse files Browse the repository at this point in the history
Modify `deviceConfig` to actually alter the `NoAutoConvertSRC` flag
  • Loading branch information
gen2brain authored Nov 18, 2023
2 parents 8f5d1f8 + 7235d9f commit 404da6a
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 404da6a

Please sign in to comment.