aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/decoders/raw.cpp2
-rw-r--r--sound/decoders/raw.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/decoders/raw.cpp b/sound/decoders/raw.cpp
index addad0a253..2d4da5c63d 100644
--- a/sound/decoders/raw.cpp
+++ b/sound/decoders/raw.cpp
@@ -99,7 +99,7 @@ public:
len += i->len;
}
- _playtime = Timestamp(0, len / (is16Bit ? 2 : 1) / (stereo ? 2 : 1), rate);
+ _playtime = Timestamp(0, len / (stereo ? 2 : 1), rate);
}
diff --git a/sound/decoders/raw.h b/sound/decoders/raw.h
index edbb108de7..e04f1b5621 100644
--- a/sound/decoders/raw.h
+++ b/sound/decoders/raw.h
@@ -69,7 +69,7 @@ enum RawFlags {
*/
struct RawStreamBlock {
int32 pos; ///< Position in stream of the block (in bytes of course!)
- int32 len; ///< Length of the block (in sample (pairs))
+ int32 len; ///< Length of the block (in raw samples, not sample pairs!)
};
/**