diff options
| author | Tim Redfern <tim@gray.(none)> | 2012-11-20 04:46:42 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@gray.(none)> | 2012-11-20 04:46:42 +0000 |
| commit | b4d89c0a9029739d2af1705b371dc28f27b6d2dc (patch) | |
| tree | 5df34978c29ca28f5c2d01d8694f83f44cdc848f /vfg/src/Puppet.cpp | |
| parent | 891b71c261a4571e0e0ba0e824e1bdb2478e0c65 (diff) | |
puppet penguins
Diffstat (limited to 'vfg/src/Puppet.cpp')
| -rwxr-xr-x | vfg/src/Puppet.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vfg/src/Puppet.cpp b/vfg/src/Puppet.cpp index 46eee5e..0fd07a6 100755 --- a/vfg/src/Puppet.cpp +++ b/vfg/src/Puppet.cpp @@ -58,9 +58,16 @@ void Puppet::play(string clip){ if (playlist.size()==1) clips[playlist[0]].play();
//printf("playing %s, %i, %s\n",playlist[0].c_str(),playlist.size(),clips[playlist[0]].getIsPlaying()?"true":"false");
}
+} +void Puppet::playNow(string clip){ + if (playlist.size()>0) { + clips[playlist[0]].stop(); + playlist.clear(); + } + play(clip); }
bool Puppet::isPlaying(){
if (playlist.size()>0) return clips[playlist[0]].getIsPlaying();
else return false;
-}
\ No newline at end of file +} |
