getPreset() returning invalid value


#1

Hello,

I’m using the 6.0.1 MUSE SDK with a 2016 MUSE Headset on iOS 10.3.1/iPhone 7 with Swift 3.1/Xcode 8.2.3 and I’m getting invalid MUSE preset values back from the getPreset() call:

if let preset = muse?.getConfiguration()?.getPreset() {
    print("preset: \(preset.rawValue)")
}

This results in preset: 33 being printed to the console. If I break on this code and print the value of the preset variable using the debugger I get this:

(lldb) p preset
(IXNMusePreset) $R0 = <invalid> (0x21)

Has anyone else run into this? Is this a Swift problem or an issue with the MUSE SDK or am I doing something incorrectly? I experience the same problem with both the 5.13.0, 6.0.0 and 6.0.1 MUSE SDKs.

I have successfully connected to the MUSE headset by the time I’m making this call. All other information coming back from the MUSE configuration object is correct and I am able receive data from the headset.

Thanks in advance
-Mark


#2

Hi Mark.

This appears to be an issue in the LibMuse SDK.

Thank you for reporting it.


#3

Thank you for confirming that this is a SDK issue. One additional piece of information: presets are reported correctly for 2014 headsets.