Displaying 1 result from an estimated 1 matches for "addandqueuesegment".
2012 May 27
1
Thread Problem.
..._fade = 16;
KillStream();
music_queue.clear();
raw_oggs.clear();
//then something like this
//this is really a condition here which depends on
//the name variable parameter
//the important part is that it loads an intro to a song
//and then a looped portion of a song
addAndQueueSegment("song_intro", raw_oggs);
addAndQueueSegment("song_theme_loop", raw_oggs);
PlayStream();
}
void addAndQueueSegment(const char *name, std::deque<RawOggData> &raw_oggs)
{
std::string filename;
filename += name;
filename += ".ogg&...