Skip to content

Commit

Permalink
https://github.com/shogo4405/HaishinKit.swift/pull/1298#discussion_r1…
Browse files Browse the repository at this point in the history
…340743925
  • Loading branch information
shogo4405 committed Sep 29, 2023
1 parent d8819ea commit 780449b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Media/IOAudioResampler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ struct IOAudioResamplerSettings {
self.channelMap = channelMap
}

func invalidate(_ oldValue: IOAudioResamplerSettings!) -> Bool {
return (sampleRate != oldValue.sampleRate &&
channels != oldValue.channels)
func invalidate(_ oldValue: IOAudioResamplerSettings) -> Bool {
return !(sampleRate == oldValue.sampleRate &&
channels == oldValue.channels)
}

func apply(_ converter: AVAudioConverter?, oldValue: IOAudioResamplerSettings?) {
Expand Down

0 comments on commit 780449b

Please sign in to comment.