diff options
| author | Torbjörn Andersson | 2005-10-16 13:31:57 +0000 | 
|---|---|---|
| committer | Torbjörn Andersson | 2005-10-16 13:31:57 +0000 | 
| commit | 6ee249743c11fd8cb6a0f5685e1e24939fedb0e4 (patch) | |
| tree | 713593c787da51af491a210e93240271a7c41610 | |
| parent | 1af9aad8efc69661cdfda20bd138db94e9dc2def (diff) | |
| download | scummvm-rg350-6ee249743c11fd8cb6a0f5685e1e24939fedb0e4.tar.gz scummvm-rg350-6ee249743c11fd8cb6a0f5685e1e24939fedb0e4.tar.bz2 scummvm-rg350-6ee249743c11fd8cb6a0f5685e1e24939fedb0e4.zip | |
There was a mention of the "Expected XXX samples..." error in the IRC logs.
Without a proper bug report, it's hard to diagnose, but this change might
allow it to recover after such an error. Maybe.
svn-id: r19108
| -rw-r--r-- | sword2/driver/d_sound.cpp | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/sword2/driver/d_sound.cpp b/sword2/driver/d_sound.cpp index 74df9ae57b..a0cd17d116 100644 --- a/sword2/driver/d_sound.cpp +++ b/sword2/driver/d_sound.cpp @@ -323,9 +323,8 @@ void MusicInputStream::refill() {  	// during development. :-)  	if (len < desired) { -		warning("Expected %d samples, but got none", desired); -		if (!len) -			return; +		warning("Expected %d samples, but got %d", desired, len); +		_samplesLeft = len;  	}  	buf += len; | 
