Removed not needed casts from Java file.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 27 Apr 2013 17:23:20 +0200
changeset 712445e40ae31722
parent 7123 a8c028f98fd1
child 7125 082c0c53ac16
Removed not needed casts from Java file.
android-project/src/org/libsdl/app/SDLActivity.java
     1.1 --- a/android-project/src/org/libsdl/app/SDLActivity.java	Sat Apr 27 17:17:37 2013 +0200
     1.2 +++ b/android-project/src/org/libsdl/app/SDLActivity.java	Sat Apr 27 17:23:20 2013 +0200
     1.3 @@ -349,7 +349,7 @@
     1.4          int audioFormat = is16Bit ? AudioFormat.ENCODING_PCM_16BIT : AudioFormat.ENCODING_PCM_8BIT;
     1.5          int frameSize = (isStereo ? 2 : 1) * (is16Bit ? 2 : 1);
     1.6          
     1.7 -        Log.v("SDL", "SDL audio: wanted " + (isStereo ? "stereo" : "mono") + " " + (is16Bit ? "16-bit" : "8-bit") + " " + ((float)sampleRate / 1000f) + "kHz, " + desiredFrames + " frames buffer");
     1.8 +        Log.v("SDL", "SDL audio: wanted " + (isStereo ? "stereo" : "mono") + " " + (is16Bit ? "16-bit" : "8-bit") + " " + (sampleRate / 1000f) + "kHz, " + desiredFrames + " frames buffer");
     1.9          
    1.10          // Let the user pick a larger buffer if they really want -- but ye
    1.11          // gods they probably shouldn't, the minimums are horrifyingly high
    1.12 @@ -361,7 +361,7 @@
    1.13          
    1.14          audioStartThread();
    1.15          
    1.16 -        Log.v("SDL", "SDL audio: got " + ((mAudioTrack.getChannelCount() >= 2) ? "stereo" : "mono") + " " + ((mAudioTrack.getAudioFormat() == AudioFormat.ENCODING_PCM_16BIT) ? "16-bit" : "8-bit") + " " + ((float)mAudioTrack.getSampleRate() / 1000f) + "kHz, " + desiredFrames + " frames buffer");
    1.17 +        Log.v("SDL", "SDL audio: got " + ((mAudioTrack.getChannelCount() >= 2) ? "stereo" : "mono") + " " + ((mAudioTrack.getAudioFormat() == AudioFormat.ENCODING_PCM_16BIT) ? "16-bit" : "8-bit") + " " + (mAudioTrack.getSampleRate() / 1000f) + "kHz, " + desiredFrames + " frames buffer");
    1.18      }
    1.19      
    1.20      public static void audioStartThread() {
    1.21 @@ -550,8 +550,8 @@
    1.22              break;
    1.23          }
    1.24  
    1.25 -        mWidth = (float) width;
    1.26 -        mHeight = (float) height;
    1.27 +        mWidth = width;
    1.28 +        mHeight = height;
    1.29          SDLActivity.onNativeResize(width, height, sdlFormat);
    1.30          Log.v("SDL", "Window size:" + width + "x"+height);
    1.31