FIxed some big audio bugs, and finally got the audio reversing correctly working. Now, audio waves are reversed when a time map is moving backwards. There are still some pops and crackles, but I'll fix those later.

This commit is contained in:
Jonathan Thomas
2012-10-21 05:29:29 -05:00
parent 266bd45bde
commit b74e97c7d2
9 changed files with 401 additions and 171 deletions

View File

@@ -266,6 +266,16 @@ Point& Keyframe::GetPoint(int index) throw(OutOfBoundsPoint) {
throw OutOfBoundsPoint("Invalid point requested", index, Points.size());
}
// Get the number of values (i.e. coordinates on the X axis)
int Keyframe::GetLength() {
// Check if it needs to be processed
if (needs_update)
Process();
// return the size of the Values vector
return Values.size();
}
// Remove a point by matching a coordinate
void Keyframe::RemovePoint(Point p) throw(OutOfBoundsPoint) {
// mark as dirty