allows prompts from collection to be looped

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1111 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent 566e486de6
commit 9c9f155ea4

@ -106,7 +106,8 @@ AmCachedAudioFile* AudioFileEntry::getAudio(){
}
int AmPromptCollection::addToPlaylist(const std::string& name, long sess_id,
AmPlaylist& list, bool front) {
AmPlaylist& list, bool front,
bool loop) {
string s = name;
std::map<std::string, AudioFileEntry*>::iterator it=store.begin();
@ -128,6 +129,9 @@ int AmPromptCollection::addToPlaylist(const std::string& name, long sess_id,
return -2;
}
if (loop)
af->loop.set(true);
if (front)
list.addToPlayListFront(new AmPlaylistItem(af,NULL));
else

@ -97,7 +97,8 @@ class AmPromptCollection {
* to the playlist @list
*/
int addToPlaylist(const string& name, long sess_id,
AmPlaylist& list, bool front=false);
AmPlaylist& list, bool front=false,
bool loop=false);
/**
* cleanup allocated object of sess_id
*/

Loading…
Cancel
Save