Fixed SDLActivity::audioInit return type, thanks Andreas!
This commit is contained in:
parent
17b81066ba
commit
b2b90c9f49
1 changed files with 1 additions and 1 deletions
|
@ -353,7 +353,7 @@ public class SDLActivity extends Activity {
|
|||
}
|
||||
|
||||
// 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue