[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9954: Fix computation of sound dura
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9954: Fix computation of sound duration for stereo sounds. See bug #24481. |
Date: |
Wed, 08 Oct 2008 09:31:25 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9954
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Wed 2008-10-08 09:31:25 +0200
message:
Fix computation of sound duration for stereo sounds. See bug #24481.
modified:
libmedia/ffmpeg/sound_handler_sdl.cpp
=== modified file 'libmedia/ffmpeg/sound_handler_sdl.cpp'
--- a/libmedia/ffmpeg/sound_handler_sdl.cpp 2008-10-02 08:42:45 +0000
+++ b/libmedia/ffmpeg/sound_handler_sdl.cpp 2008-10-08 07:31:25 +0000
@@ -549,9 +549,10 @@
// Return the sound duration in milliseconds
if (sampleCount > 0 && sampleRate > 0) {
+ // TODO: should we cache this in the sound_data object ?
unsigned int ret = sampleCount / sampleRate * 1000;
ret += ((sampleCount % sampleRate) * 1000) / sampleRate;
- if (sounddata->soundinfo->isStereo()) ret = ret / 2;
+ //if (sounddata->soundinfo->isStereo()) ret = ret / 2;
return ret;
} else {
return 0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9954: Fix computation of sound duration for stereo sounds. See bug #24481.,
Sandro Santilli <=