Skip to content

Commit

Permalink
Fixed breakage due to new event type enum value
Browse files Browse the repository at this point in the history
  • Loading branch information
bradhowes committed Sep 26, 2021
1 parent e772725 commit f7e7eda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions SoundFontsApp/SoundFontsApp/DelayAU/Audio Unit/DelayAU.swift
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,7 @@ extension DelayAU {
var head = realtimeEventListHead
while head != nil {
guard let event = head?.pointee else { break }
switch event.head.eventType {
case .MIDI: break
case .midiSysEx: break
case .parameter:
if event.head.eventType == .parameter {
let address = event.parameter.parameterAddress
let value = event.parameter.value
switch AudioUnitParameters.Address(rawValue: address) {
Expand All @@ -328,9 +325,6 @@ extension DelayAU {
case .wetDryMix: wetDryMixParameter.setValue(value, originator: nil)
default: break
}
case .parameterRamp: break
case .midiEventList: break
@unknown default: break
}
head = UnsafePointer<AURenderEvent>(event.head.next)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,20 +313,14 @@ extension ReverbAU {
var head = realtimeEventListHead
while head != nil {
guard let event = head?.pointee else { break }
switch event.head.eventType {
case .MIDI: break
case .midiSysEx: break
case .parameter:
if event.head.eventType == .parameter {
let address = event.parameter.parameterAddress
let value = event.parameter.value
switch AudioUnitParameters.Address(rawValue: address) {
case .roomPreset: roomPresetParameter.setValue(value, originator: nil)
case .wetDryMix: wetDryMixParameter.setValue(value, originator: nil)
default: break
}
case .parameterRamp: break
case .midiEventList: break
@unknown default: break
}
head = UnsafePointer<AURenderEvent>(event.head.next)
}
Expand Down

0 comments on commit f7e7eda

Please sign in to comment.