rnine / SimplyCoreAudio

🔊 A Swift framework that aims to make Core Audio use less tedious in macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting `physicalFormat` logs error on success

jolonf opened this issue · comments

Setting AudioStream.physicalFormat logs an error even though it was successful.

if should be guard:

if noErr == setStreamPropertyData(kAudioStreamPropertyPhysicalFormat, andValue: &asbd) {
os_log("Error setting physicalFormat to %@.", log: .default, type: .debug, String(describing: newValue))
}

AudioStream.virtualFormat has the same typo.