Hello,
How can I access variable size arrays in Swift 1.2?
For example
var layout:AudioChannelLayout = ...
for var i:UInt32 = 0; i < layout.mNumberChannelDescriptions; i++
{
if layout.mChannelDescriptions[i].mChannelLabel == kAudioChannelLabel_Left { /*some action*/ } // 'AudioChannelDescription' does not have a member named 'subscript'
}
Type of layout.mChannelDescriptions is (AudioChannelDescription)
TIA,
Jan E.
BTW it would be nice if the Analyzer's remarks could be copied