/* $Id$
This file is part of libmspal
-Copyright © 2008 Mikko Rasa, Mikkosoft Productions
+Copyright © 2008-2009 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
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();
buffers.push_back(buf);
}
}
+
+ if(snd->eof())
+ snd=0;
}
} // namespace AL