Xcode/SDL/Info-Framework.plist
author Sam Lantinga <slouken@libsdl.org>
Tue, 25 Sep 2018 20:08:51 -0700
changeset 12224 0582b4e1fa9f
parent 11687 e968d755a760
child 12229 2fb171be56e0
permissions -rw-r--r--
Fixed bug 4268 - Android_JNI_OpenAudioDevice function has error

alittle

where iscapture == 1

1.param set error

(*env)->CallStaticIntMethod(env, mAudioManagerClass, midCaptureOpen, sampleRate, audioBuffer16Bit, audioBufferStereo, desiredBufferFrames)

param:audioBuffer16Bit need change to captureBuffer16Bit

2.logic error

if (is16Bit) {
// ALITTLE Modify the source code
if (iscapture) {
audioBufferFrames = (*env)->GetArrayLength(env, (jshortArray)captureBuffer);
} else {
audioBufferPinned = (*env)->GetShortArrayElements(env, (jshortArray)audioBuffer, &isCopy);
audioBufferFrames = (*env)->GetArrayLength(env, (jshortArray)audioBuffer);
}
// if (!iscapture) {
// audioBufferPinned = (*env)->GetShortArrayElements(env, (jshortArray)audioBuffer, &isCopy);
// }
// audioBufferFrames = (*env)->GetArrayLength(env, (jshortArray)audioBuffer);
} else {
// ALITTLE Modify the source code
if (iscapture) {
audioBufferFrames = (*env)->GetArrayLength(env, (jbyteArray)captureBuffer);
} else {
audioBufferPinned = (*env)->GetByteArrayElements(env, (jbyteArray)audioBuffer, &isCopy);
audioBufferFrames = (*env)->GetArrayLength(env, (jbyteArray)audioBuffer);
}
// if (!iscapture) {
// audioBufferPinned = (*env)->GetByteArrayElements(env, (jbyteArray)audioBuffer, &isCopy);
// }
// audioBufferFrames = (*env)->GetArrayLength(env, (jbyteArray)audioBuffer);
}
slouken@3303
     1
<?xml version="1.0" encoding="UTF-8"?>
slouken@3303
     2
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
slouken@3303
     3
<plist version="1.0">
slouken@3303
     4
<dict>
slouken@3303
     5
	<key>CFBundleDevelopmentRegion</key>
slouken@3303
     6
	<string>English</string>
slouken@7803
     7
	<key>CFBundleExecutable</key>
slouken@7803
     8
	<string>${EXECUTABLE_NAME}</string>
slouken@3303
     9
	<key>CFBundleGetInfoString</key>
slouken@3303
    10
	<string>http://www.libsdl.org</string>
slouken@3303
    11
	<key>CFBundleIconFile</key>
slouken@3303
    12
	<string></string>
slouken@3303
    13
	<key>CFBundleIdentifier</key>
slouken@10354
    14
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
slouken@3303
    15
	<key>CFBundleInfoDictionaryVersion</key>
slouken@3303
    16
	<string>6.0</string>
slouken@3303
    17
	<key>CFBundleName</key>
slouken@3303
    18
	<string>Simple DirectMedia Layer</string>
slouken@3303
    19
	<key>CFBundlePackageType</key>
slouken@3303
    20
	<string>FMWK</string>
slouken@3303
    21
	<key>CFBundleShortVersionString</key>
slouken@11687
    22
	<string>2.0.8</string>
slouken@3303
    23
	<key>CFBundleSignature</key>
slouken@3303
    24
	<string>SDLX</string>
slouken@3303
    25
	<key>CFBundleVersion</key>
slouken@11687
    26
	<string>2.0.8</string>
slouken@3303
    27
</dict>
slouken@3303
    28
</plist>