docs/README-psp.md
author Sam Lantinga <slouken@libsdl.org>
Tue, 25 Sep 2018 20:08:51 -0700
changeset 12224 0582b4e1fa9f
parent 10486 5bf595c48fd4
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@10486
     1
PSP
slouken@10486
     2
======
gabomdq@9023
     3
SDL port for the Sony PSP contributed by 
gabomdq@9023
     4
   Captian Lex 
gabomdq@9023
     5
gabomdq@9023
     6
Credit to
gabomdq@9023
     7
   Marcus R.Brown,Jim Paris,Matthew H for the original SDL 1.2 for PSP
gabomdq@9023
     8
   Geecko for his PSP GU lib "Glib2d"
gabomdq@9023
     9
gabomdq@9023
    10
Building
gabomdq@9023
    11
--------
gabomdq@9023
    12
To build for the PSP, make sure psp-config is in the path and run:
gabomdq@9023
    13
   make -f Makefile.psp
gabomdq@9023
    14
gabomdq@9023
    15
gabomdq@9023
    16
gabomdq@9023
    17
To Do
gabomdq@9023
    18
------
gabomdq@9023
    19
PSP Screen Keyboard