Browse Source

Another fix for seeking in audio sources

Bart van Strien 14 years ago
parent
commit
69f12bf899
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/audio/openal/Source.cpp

+ 1 - 1
src/modules/audio/openal/Source.cpp

@@ -264,7 +264,6 @@ namespace openal
 				// let's empty them.
 				// let's empty them.
 				stopAtomic(false);
 				stopAtomic(false);
 				playAtomic();
 				playAtomic();
-				toLoop = 0;
 			}
 			}
 		}
 		}
 	}
 	}
@@ -425,6 +424,7 @@ namespace openal
 		}
 		}
 		if (rewind)
 		if (rewind)
 			rewindAtomic();
 			rewindAtomic();
+		toLoop = 0;
 		valid = false;
 		valid = false;
 	}
 	}