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

void aKode::Player::wait (  ) 

Waits for the file to finish playing (eof or error) and calls stop. This blocks the calling thread, possibly indefinitely if the source is a radio stream.

State: Playing -> Loaded

Definition at line 524 of file player.cpp.

References resume(), and state().

    if (state() == Closed || state() == Open) return;
    if (state() == Loaded) return;

    if (state() == Paused) resume();

    assert(state() == Playing);

    if (d->running) {
        pthread_join(d->player_thread, 0);
        d->running = false;



Generated by  Doxygen 1.6.0   Back to index