W
W
Watchman1422016-08-27 07:00:50
iPhone
Watchman142, 2016-08-27 07:00:50

Is it possible to programmatically know which equalizer preset is set in iPhone settings?

Is it possible to programmatically know which equalizer preset is set in iPhone settings?
For example, you can get a list of all presets:

UInt32 sizeof1 = sizeof(mEQPresetsArray);
AudioUnitGetProperty(mEQ, kAudioUnitProperty_FactoryPresets,
                     kAudioUnitScope_Global, 0, &mEQPresetsArray, &sizeof1);

UInt8 count = CFArrayGetCount(mEQPresetsArray);
for (int i = 0; i < count; ++i) {
    AUPreset *aPreset = (AUPreset*)CFArrayGetValueAtIndex(mEQPresetsArray, i);
    CFShow(aPreset->presetName);
}

But how do you know which of these presets is selected by the user in the settings?
a687dfd7ea7b4fbcbe164390cbbe5557.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question