Home | History | Annotate | Download | only in jni

Lines Matching refs:jint

185 static jint
188 jint sampleRateInHertz, jint javaChannelMask,
189 jint audioFormat, jint buffSizeInBytes, jint memoryMode, jintArray jSession) {
196 return (jint) AUDIO_JAVA_ERROR;
205 return (jint) AUDIOTRACK_ERROR_SETUP_INVALIDCHANNELMASK;
215 return (jint) AUDIOTRACK_ERROR_SETUP_INVALIDFORMAT;
243 return (jint) AUDIOTRACK_ERROR_SETUP_NATIVEINITFAILED;
248 return (jint) AUDIO_JAVA_ERROR;
251 jint* nSession = (jint *) env->GetPrimitiveArrayCritical(jSession, NULL);
254 return (jint) AUDIO_JAVA_ERROR;
347 nSession = (jint *) env->GetPrimitiveArrayCritical(jSession, NULL);
371 env->SetIntField(thiz, javaAudioTrackFields.fieldStreamType, (jint) lpTrack->streamType());
377 return (jint) AUDIO_JAVA_SUCCESS;
392 return (jint) AUDIOTRACK_ERROR_SETUP_NATIVEINITFAILED;
514 jint writeToTrack(const sp<AudioTrack>& track, jint audioFormat, const jbyte* data,
515 jint offsetInBytes, jint sizeInBytes, bool blocking = true) {
564 static jint android_media_AudioTrack_write_byte(JNIEnv *env, jobject thiz,
566 jint offsetInBytes, jint sizeInBytes,
567 jint javaAudioFormat,
595 jint written = writeToTrack(lpTrack, javaAudioFormat, cAudioData, offsetInBytes, sizeInBytes,
607 static jint android_media_AudioTrack_write_native_bytes(JNIEnv *env, jobject thiz,
608 jbyteArray javaBytes, jint byteOffset, jint sizeInBytes,
609 jint javaAudioFormat, jboolean isWriteBlocking) {
622 return (jint)AUDIO_JAVA_BAD_VALUE;
625 jint written = writeToTrack(lpTrack, javaAudioFormat, bytes.get(), byteOffset,
632 static jint android_media_AudioTrack_write_short(JNIEnv *env, jobject thiz,
634 jint offsetInShorts, jint sizeInShorts,
635 jint javaAudioFormat) {
662 jint written = writeToTrack(lpTrack, javaAudioFormat, (jbyte *)cAudioData,
678 static jint android_media_AudioTrack_write_float(JNIEnv *env, jobject thiz,
680 jint offsetInFloats, jint sizeInFloats,
681 jint javaAudioFormat,
702 jint written = writeToTrack(lpTrack, javaAudioFormat, (jbyte *)cAudioData,
716 static jint android_media_AudioTrack_get_native_frame_count(JNIEnv *env, jobject thiz) {
721 return (jint)AUDIO_JAVA_ERROR;
729 static jint android_media_AudioTrack_set_playback_rate(JNIEnv *env, jobject thiz,
730 jint sampleRateInHz) {
735 return (jint)AUDIO_JAVA_ERROR;
742 static jint android_media_AudioTrack_get_playback_rate(JNIEnv *env, jobject thiz) {
747 return (jint)AUDIO_JAVA_ERROR;
749 return (jint) lpTrack->getSampleRate();
754 static jint android_media_AudioTrack_set_marker_pos(JNIEnv *env, jobject thiz,
755 jint markerPos) {
760 return (jint)AUDIO_JAVA_ERROR;
767 static jint android_media_AudioTrack_get_marker_pos(JNIEnv *env, jobject thiz) {
774 return (jint)AUDIO_JAVA_ERROR;
777 return (jint)markerPos;
782 static jint android_media_AudioTrack_set_pos_update_period(JNIEnv *env, jobject thiz,
783 jint period) {
788 return (jint)AUDIO_JAVA_ERROR;
795 static jint android_media_AudioTrack_get_pos_update_period(JNIEnv *env, jobject thiz) {
802 return (jint)AUDIO_JAVA_ERROR;
805 return (jint)period;
810 static jint android_media_AudioTrack_set_position(JNIEnv *env, jobject thiz,
811 jint position) {
816 return (jint)AUDIO_JAVA_ERROR;
823 static jint android_media_AudioTrack_get_position(JNIEnv *env, jobject thiz) {
830 return (jint)AUDIO_JAVA_ERROR;
833 return (jint)position;
838 static jint android_media_AudioTrack_get_latency(JNIEnv *env, jobject thiz) {
844 return (jint)AUDIO_JAVA_ERROR;
846 return (jint)lpTrack->latency();
851 static jint android_media_AudioTrack_get_timestamp(JNIEnv *env, jobject thiz, jlongArray jTimestamp) {
856 return (jint)AUDIO_JAVA_ERROR;
864 return (jint)AUDIO_JAVA_ERROR;
870 return (jint) nativeToJavaStatus(status);
875 static jint android_media_AudioTrack_set_loop(JNIEnv *env, jobject thiz,
876 jint loopStart, jint loopEnd, jint loopCount) {
881 return (jint)AUDIO_JAVA_ERROR;
888 static jint android_media_AudioTrack_reload(JNIEnv *env, jobject thiz) {
893 return (jint)AUDIO_JAVA_ERROR;
900 static jint android_media_AudioTrack_get_output_sample_rate(JNIEnv *env, jobject thiz,
901 jint javaStreamType) {
936 static jint android_media_AudioTrack_get_min_buff_size(JNIEnv *env, jobject thiz,
937 jint sampleRateInHertz, jint channelCount, jint audioFormat) {
957 static jint
972 return (jint) status;
976 static jint android_media_AudioTrack_attachAuxEffect(JNIEnv *env, jobject thiz,
977 jint effectId) {
982 return (jint)AUDIO_JAVA_ERROR;