Browse files

[droid] fix gl spectrum vis

Must have been busted by AE merge.
  • Loading branch information...
1 parent f80175f commit 115e5a23e3b3cd964a2a6ecc278d816dfc67543d Cory Fields committed Jul 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/visualizations/OpenGLSpectrum/opengl_spectrum.cpp
View
4 xbmc/visualizations/OpenGLSpectrum/opengl_spectrum.cpp
@@ -367,8 +367,8 @@ extern "C" void AudioData(const float* pAudioData, int iAudioDataLength, float *
{
if (c<iAudioDataLength)
{
- if(pAudioData[c] > y)
- y = (int)(pAudioData[c] * (INT16_MAX+.5f));
+ if((int)(pAudioData[c] * (INT16_MAX)) > y)
+ y = (int)(pAudioData[c] * (INT16_MAX));
}
else
continue;

0 comments on commit 115e5a2

Please sign in to comment.