Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[droid] fix gl spectrum vis

Must have been busted by AE merge.
  • Loading branch information...
commit 115e5a23e3b3cd964a2a6ecc278d816dfc67543d 1 parent f80175f
Cory Fields authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.