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

bool aKode::Player::load ( File file  ) 

Loads the file file and prepares for playing. Returns false if the file cannot be loaded or decoded.

This version allows for overloaded aKode::File objects; usefull for streaming.

State: Open -> Loaded

Definition at line 292 of file player.cpp.

References aKode::File::close(), load(), aKode::File::openRO(), state(), stop(), and unload().

    if (state() == Closed) return false;

    if (state() == Paused || state() == Playing)

    if (state() == Loaded)

    assert(state() == Open);

    if (!file->openRO())
        return false;

    d->src = file;
    d->my_file = false;

    return load();

Generated by  Doxygen 1.6.0   Back to index