Rework source updates, do clean stopping of streaming sources once they end. (bug #295)

This commit is contained in:
Bart van Strien
2011-09-10 17:28:38 +02:00
parent 9199f1be5b
commit c28659ae33
6 changed files with 61 additions and 48 deletions
+2 -1
View File
@@ -77,8 +77,9 @@ namespace null
return true;
}
void Source::update()
bool Source::update()
{
return false;
}
void Source::setPitch(float pitch)
+1 -1
View File
@@ -52,7 +52,7 @@ namespace null
virtual bool isStopped() const;
virtual bool isPaused() const;
virtual bool isFinished() const;
virtual void update();
virtual bool update();
virtual void setPitch(float pitch);
virtual float getPitch() const;
virtual void setVolume(float volume);