Browse files

Fix mono audio playback.

Follow-up 8adf652, which was incorrect

[cherry-picked from ce8844a]
  • Loading branch information...
1 parent b4b0fb3 commit cd75e17bd55ccd833e306346f6bcfc51550282de @jyavenard jyavenard committed Feb 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmyth/audiooutputbase.cpp
View
2 mythtv/libs/libmyth/audiooutputbase.cpp
@@ -990,7 +990,7 @@ int AudioOutputBase::CopyWithUpmix(char *buffer, int frames, uint &org_waud)
{
AudioOutputUtil::MonoToStereo(WPOS, buffer, bdFrames);
frames -= bdFrames;
- off = bdFrames * source_bytes_per_frame;
+ off = bdFrames * sizeof(float); // 1 channel of floats
org_waud = 0;
}
if (frames > 0)

0 comments on commit cd75e17

Please sign in to comment.