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);
d->src = file;
d->my_file = false;