Browse Source

Fixed a typo in recent commit to address an armeabi internal compiler bug

tags/2021-05-28
hogliux 8 years ago
parent
commit
23b6450e62
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/vorbisfile.c

+ 1
- 1
modules/juce_audio_formats/codecs/oggvorbis/libvorbis-1.3.2/lib/vorbisfile.c View File

@@ -1926,7 +1926,7 @@ long ov_read_filter(OggVorbis_File *vf,char *buffer,int length,
#ifdef ANDROID
float f = pcm[i][j];
f = (f <= 1.0f ? (f >= -1.0f ? f : -1.0f) : 1.0f);
val = vorbis_ftoi(f * 128.f);
val = vorbis_ftoi(f * 127.f);
#else
val=vorbis_ftoi(pcm[i][j]*128.f);
if(val>127)val=127;


Loading…
Cancel
Save