Lines Matching refs:fields

83     void fillFromJobject(JNIEnv *env, const fields_t& fields, jobject params) {  in fillFromJobject()
84 audioRate.mSpeed = env->GetFloatField(params, fields.speed); in fillFromJobject()
85 audioRate.mPitch = env->GetFloatField(params, fields.pitch); in fillFromJobject()
87 (AudioTimestretchFallbackMode)env->GetIntField(params, fields.audio_fallback_mode); in fillFromJobject()
89 (AudioTimestretchStretchMode)env->GetIntField(params, fields.audio_stretch_mode); in fillFromJobject()
90 int set = env->GetIntField(params, fields.set); in fillFromJobject()
92 speedSet = set & fields.set_speed; in fillFromJobject()
93 pitchSet = set & fields.set_pitch; in fillFromJobject()
94 audioFallbackModeSet = set & fields.set_audio_fallback_mode; in fillFromJobject()
95 audioStretchModeSet = set & fields.set_audio_stretch_mode; in fillFromJobject()
98 jobject asJobject(JNIEnv *env, const fields_t& fields) { in asJobject()
99 jobject params = env->NewObject(fields.clazz, fields.constructID); in asJobject()
103 env->SetFloatField(params, fields.speed, (jfloat)audioRate.mSpeed); in asJobject()
104 env->SetFloatField(params, fields.pitch, (jfloat)audioRate.mPitch); in asJobject()
105 env->SetIntField(params, fields.audio_fallback_mode, (jint)audioRate.mFallbackMode); in asJobject()
106 env->SetIntField(params, fields.audio_stretch_mode, (jint)audioRate.mStretchMode); in asJobject()
108 params, fields.set, in asJobject()
109 (speedSet ? fields.set_speed : 0) in asJobject()
110 | (pitchSet ? fields.set_pitch : 0) in asJobject()
111 | (audioFallbackModeSet ? fields.set_audio_fallback_mode : 0) in asJobject()
112 | (audioStretchModeSet ? fields.set_audio_stretch_mode : 0)); in asJobject()