tItf outputMixObject = NULL;
    SLEnvironmentalReverbItf outputMixEnvironmentalReverb = NULL;
    SLObjectItf bqPlayerObject = NULL;
    SLPlayItf bqPlayerPlay;
    SLEffectSendItf bqPlayerEffectSend;
    SLVolumeItf bqPlayerVolume;
    const SLEnvironmentalReverbSettings reverbSettings =
            SL_I3DL2_ENVIRONMENT_PRESET_STONECORRIDOR;

    LOGD("SfxMan: initializing.");
    mPlayerBufferQueue = NULL;

    // create engine
    result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL);
    if (_checkError(result, "creating engine")) return;

    // realize the engine
    result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE);
    if (_checkError(result, "realizing engine")) return;

    // get the engine interface, which is needed in order to create other objects
    result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine);
    if (_checkError(result, "getting engine interface")) return;

    // create output mix, with einitializingnvironmental reverb specified as a non-required interface
    const SLInterfaceID ids[1] = {SL_IID_ENVIRONMENTALREVERB};
    const SLboolean req[1] = {SL_BOOLEAN_FALSE};
    result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 1, ids, req);
    if (_checkError(result, "creating output mix")) return;

    // realize the output mix
    result = (*outputMixObject)->Realize(outputMixObject, SL_BOOLEAN_FALSE);
    if (_checkError(result, "realizin goutput mix")) return;

    // get the environmental reverb interface
    // this could fail if the environmental reverb effect is not available,
    // either because the feature is not present, excessive CPU load, or
    // the required MODIFY_AUDIO_SETTINGS permission was not requested and granted
    result = (*outputMixObject)->GetInterface(outputMixObject, SL_IID_ENVIRONMENTALREVERB,
                &outputMixEnvironmentalReverb);
    if (SL_RESULT_SUCCESS == result) {
        result = (*outputMixEnvironmentalReverb)->SetEnvironmentalReverbProperties(
                    outputMixEnvironmentalReverb, &reverbSettings);
    }
    // ignore unsuccessful result codes for environmental reverb, as it is optional for this example

    // configure audio source
    SLDataLocator_AndroidSimpleBufferQueue loc_bufq = {SL_DATALOCATOR_ANDROIDSIMPLEBUFFERQUEUE, 2};
    SLDataFormat_PCM format_pcm = {SL_DATAFORMAT_PCM, 1, SL_SAMPLINGRATE_8,
        SL_PCMSAMPLEFORMAT_FIXED_16, SL_PCMSAMPLEFORMAT_FIXED_16,
        SL_SPEAKER_FRONT_CENTER, SL_BYTEORDER_LITTLEENDIAN};

    SLDataSource audioSVersion 4
SHEET 1 880 680
WIRE 128 48 32 48
WIRE 304 48 208 48
WIRE 32 176 32 48
WIRE 32 176 -176 176
WIRE 80 176 32 176
WIRE 304 176 304 48
WIRE 304 176 272 176
WIRE -176 192 -176 176
WIRE 80 240 48 240
WIRE 400 240 272 240
WIRE 400 256 400 240
WIRE -176 288 -176 272
WIRE 80 320 0 320
WIRE 304 320 272 320
WIRE 0 336 0 320
WIRE 304 336 304 320
WIRE 400 352 400 336
WIRE 0 432 0 416
WIRE 304 432 304 416
FLAG 48 240 0
FLAG -176 288 0
FLAG 0 432 0
FLAG 304 432 0
FLAG 400 352 0
SYMBOL LTC2903-C1 176 240 R0
SYMATTR InstName U1
SYMBOL voltage -176 176 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value PULSE(0 5 0 5)
SYMATTR InstName V1
SYMBOL voltage 0 320 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value PULSE(0 3.3 0 3.3)
SYMBOL voltage 304 320 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR Value PULSE(0 1.8 0 1.8)
SYMATTR InstName V3
SYMBOL voltage 400 240 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value PULSE(0 -5.2 0 5.2)
SYMBOL res 224 32 R90
WINDOW 0 0 56 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R1
SYMATTR Value 10K
TEXT 368 480 Left 0 !.tran 5.5
