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

void aKode::Player::play (  ) 

Start playing.

State: Loaded -> Playing

Definition at line 451 of file player.cpp.

References resume(), and state().

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

    if (state() == Paused) {
        return resume();
    }

    assert(state() == Loaded);

    d->frame_decoder->seek(0);

    // Start buffering
    d->buffered_decoder.start();

    if (pthread_create(&d->player_thread, 0, run_player, d) == 0) {
        d->running = true;
        setState(Playing);
    } else {
        d->running = false;
        setState(Loaded);
    }
}


Generated by  Doxygen 1.6.0   Back to index