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

Commit

Permalink
Fixed SDLActivity::audioInit return type, thanks Andreas!
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Jan 8, 2013
1 parent 83d7f73 commit 4e2860d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -353,7 +353,7 @@ public static void flipEGL() {
}

// Audio
public static Object audioInit(int sampleRate, boolean is16Bit, boolean isStereo, int desiredFrames) {
public static void audioInit(int sampleRate, boolean is16Bit, boolean isStereo, int desiredFrames) {
int channelConfig = isStereo ? AudioFormat.CHANNEL_CONFIGURATION_STEREO : AudioFormat.CHANNEL_CONFIGURATION_MONO;
int audioFormat = is16Bit ? AudioFormat.ENCODING_PCM_16BIT : AudioFormat.ENCODING_PCM_8BIT;
int frameSize = (isStereo ? 2 : 1) * (is16Bit ? 2 : 1);
Expand Down

0 comments on commit 4e2860d

Please sign in to comment.