Logo Search packages:      
Sourcecode: akode version File versions  Download package

void aKode::Player::unload (  ) 

Unload the file and release any resources allocated while loaded

State: Loaded -> Open

Definition at line 428 of file player.cpp.

References state(), and stop().

Referenced by close(), and load().

                    {
    if (state() == Closed || state() == Open) return;
    if (state() == Paused || state() == Playing)
        stop();

    assert(state() == Loaded);

    delete d->frame_decoder;
    if (d->my_file)
        delete d->src;

    d->frame_decoder = 0;
    d->src = 0;
    d->decoder_handler.unload();

    delete d->resampler;
    delete d->converter;
    d->resampler = 0;
    d->converter = 0;

    setState(Open);
}


Generated by  Doxygen 1.6.0   Back to index