Skip to content

Commit

Permalink
feat: update libjamesdsp
Browse files Browse the repository at this point in the history
  • Loading branch information
timschneeb committed Aug 8, 2023
1 parent ef02512 commit f70c836
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions app/src/main/cpp/libjamesdsp-wrapper/JamesDspWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ Java_me_timschneeberger_rootlessjamesdsp_interop_JamesDspWrapper_alloc(JNIEnv *e
return 1;
}

bool do_benchmark = 0;
JamesDSPGlobalMemoryAllocation(do_benchmark);
JamesDSPGlobalMemoryAllocation();
JamesDSPInit(_dsp, 128, 48000);

if(!JamesDSPGetMutexStatus(_dsp))
Expand Down Expand Up @@ -391,7 +390,7 @@ Java_me_timschneeberger_rootlessjamesdsp_interop_JamesDspWrapper_setCompander(JN

if(enable)
{
CompressorSetParam(dsp, timeConstant, granularity, tfresolution);
CompressorSetParam(dsp, timeConstant, granularity, tfresolution, 0);
auto* nativeBands = (env->GetDoubleArrayElements(bands, nullptr));
CompressorSetGain(dsp, nativeBands, nativeBands + 7, 1);
env->ReleaseDoubleArrayElements(bands, nativeBands, JNI_ABORT);
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,15 @@
<string-array name="compander_tf_transforms" translatable="false">
<item>@string/compander_tftransforms_stft</item>
<item>@string/compander_tftransforms_continuous_wavelet</item>
<item>@string/compander_tftransforms_undersampling</item>
<item>@string/compander_tftransforms_time_domain</item>
</string-array>

<string-array name="compander_tf_transforms_values" translatable="false">
<item>0</item>
<item>1</item>
<item>2</item>
<item>3</item>
</string-array>

<string-array name="convolver_convolution_mode" translatable="false">
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
<string name="compander_granularity_extreme">Extreme</string>
<string name="compander_tftransforms">Time-frequency transform</string>
<string name="compander_tftransforms_stft">Uniform (Short-time Fourier)</string>
<string name="compander_tftransforms_continuous_wavelet">Multiresolution (Continuous wavelet)</string>
<string name="compander_tftransforms_time_domain">Multiresolution (Time domain)</string>

<string name="compander_tftransforms_continuous_wavelet">Multiresolution (Continuous wavelet, incomplete dual frame)</string>
<string name="compander_tftransforms_undersampling">Pseudo multiresolution (Undersampling frame)</string>
<string name="compander_tftransforms_time_domain">Pseudo multiresolution (Time domain, zero latency)</string>
<string name="eq_enable">Multimodal equalizer</string>
<string name="eq_filter_type">Filter type</string>
<string name="eq_interpolator">Interpolator</string>
Expand Down

0 comments on commit f70c836

Please sign in to comment.