X-Git-Url: http://git.tdb.fi/?p=libs%2Fal.git;a=blobdiff_plain;f=source%2Fstreamer.cpp;h=8fe7483cc735ffbc5fab4dfa3c8185b35fc5044d;hp=99503b9b70a013e9a3266dda1e95ba7f56d76e68;hb=bb3f1a84f09963031a88175c4f44c872d508447b;hpb=abef5eab53c6c75cd602fdabdec94259d1523858 diff --git a/source/streamer.cpp b/source/streamer.cpp index 99503b9..8fe7483 100644 --- a/source/streamer.cpp +++ b/source/streamer.cpp @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspal -Copyright © 2008 Mikko Rasa, Mikkosoft Productions +Copyright © 2008-2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -55,6 +55,9 @@ void Streamer::tick() if(!snd) return; + if(src.get_state()!=PLAYING && src.get_state()!=PAUSED) + src.play(); + unsigned freq=snd->get_frequency(); unsigned chunk_size=freq&~0xF; unsigned queued=src.get_buffers_queued();