docs/README-hg.md
author Sam Lantinga <slouken@libsdl.org>
Tue, 25 Sep 2018 20:08:51 -0700
changeset 12224 0582b4e1fa9f
parent 10953 d617899aadee
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);
}
     1 Mercurial
     2 =========
     3 
     4 The latest development version of SDL is available via Mercurial.
     5 Mercurial allows you to get up-to-the-minute fixes and enhancements;
     6 as a developer works on a source tree, you can use "hg" to mirror that
     7 source tree instead of waiting for an official release. Please look
     8 at the Mercurial website ( https://www.mercurial-scm.org/ ) for more
     9 information on using hg, where you can also download software for
    10 Mac OS X, Windows, and Unix systems.
    11 
    12     hg clone http://hg.libsdl.org/SDL
    13 
    14 If you are building SDL via configure, you will need to run autogen.sh
    15 before running configure.
    16 
    17 There is a web interface to the subversion repository at:
    18 	http://hg.libsdl.org/SDL/
    19 
    20 There is an RSS feed available at that URL, for those that want to
    21 track commits in real time.
    22