Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Removed not needed casts from Java file.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed Apr 27, 2013
1 parent 460575e commit 4fdd70d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -349,7 +349,7 @@ public static void audioInit(int sampleRate, boolean is16Bit, boolean isStereo,
int audioFormat = is16Bit ? AudioFormat.ENCODING_PCM_16BIT : AudioFormat.ENCODING_PCM_8BIT;
int frameSize = (isStereo ? 2 : 1) * (is16Bit ? 2 : 1);

Log.v("SDL", "SDL audio: wanted " + (isStereo ? "stereo" : "mono") + " " + (is16Bit ? "16-bit" : "8-bit") + " " + ((float)sampleRate / 1000f) + "kHz, " + desiredFrames + " frames buffer");
Log.v("SDL", "SDL audio: wanted " + (isStereo ? "stereo" : "mono") + " " + (is16Bit ? "16-bit" : "8-bit") + " " + (sampleRate / 1000f) + "kHz, " + desiredFrames + " frames buffer");

// Let the user pick a larger buffer if they really want -- but ye
// gods they probably shouldn't, the minimums are horrifyingly high
Expand All @@ -361,7 +361,7 @@ public static void audioInit(int sampleRate, boolean is16Bit, boolean isStereo,

audioStartThread();

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");
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");
}

public static void audioStartThread() {
Expand Down Expand Up @@ -550,8 +550,8 @@ public void surfaceChanged(SurfaceHolder holder,
break;
}

mWidth = (float) width;
mHeight = (float) height;
mWidth = width;
mHeight = height;
SDLActivity.onNativeResize(width, height, sdlFormat);
Log.v("SDL", "Window size:" + width + "x"+height);

Expand Down

0 comments on commit 4fdd70d

Please sign in to comment.