Skip to content

Commit

Permalink
simple impulse loader
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaji Khan committed Jul 3, 2024
1 parent 54352b1 commit 4df92a5
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 3 deletions.
20 changes: 20 additions & 0 deletions app/src/main/assets/lv2/libir_cab.so/ir-cab-sim.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"-1": {
"Plugin": true,
"pluginName": "Simple IR Loader"
},
"1": {
"AudioPort": true,
"InputPort": true,
"index": 0,
"name": "In",
"symbol": "input"
},
"2": {
"AudioPort": true,
"OutputPort": true,
"index": 1,
"name": "Out",
"symbol": "output"
}
}
6 changes: 6 additions & 0 deletions app/src/main/assets/lv2_plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -1378,5 +1378,11 @@
"name": "x42 DARC",
"index": 0,
"library": "libdarc.so"
},
"33700": {
"id": 8108,
"name": "Simple IR Loader",
"index": 0,
"library": "libir_cab.so"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -644,8 +644,8 @@ public boolean onTouch(View v, MotionEvent event) {
}

Button fileChooser = null;
if (pluginName.equals("AIDA-X") || pluginName .equals( "Looper") || pluginName.equals("Neural Amp Modeler") || pluginName.equals("TAP IR")|| pluginName.equals("SWH Impulse convolver")) {
if (audioFiles.containsKey(position) && pluginName.equals("Looper") || pluginName.equals("SWH Impulse convolver")) {
if (pluginName.equals("AIDA-X") || pluginName .equals( "Looper") || pluginName.equals("Neural Amp Modeler") || pluginName.equals("TAP IR")|| pluginName.equals("SWH Impulse convolver") || pluginName.equals("Simple IR Loader")) {
if (audioFiles.containsKey(position) && pluginName.equals("Looper") || pluginName.equals("SWH Impulse convolver")|| pluginName.equals("Simple IR Loader")) {
holder.audioFile = audioFiles.get(position);
if (holder.audioFile != null) {
AudioDecoder audioDecoder = new AudioDecoder(mainActivity);
Expand Down Expand Up @@ -694,7 +694,7 @@ public boolean onTouch(View v, MotionEvent event) {
@Override
public void onClick(View v) {
Intent intent_upload = new Intent();
if (pluginName.equals("Looper")|| pluginName.equals("SWH Impulse convolver"))
if (pluginName.equals("Looper")|| pluginName.equals("SWH Impulse convolver")||pluginName.equals("Simple IR Loader"))
intent_upload.setType("audio/*");
else {
intent_upload.setType("application/zip");
Expand Down
Binary file added app/src/main/jniLibs/arm64-v8a/libir_cab.so
Binary file not shown.
Binary file added app/src/main/jniLibs/armeabi-v7a/libir_cab.so
Binary file not shown.
Binary file added app/src/main/jniLibs/x86/libir_cab.so
Binary file not shown.
Binary file added app/src/main/jniLibs/x86_64/libir_cab.so
Binary file not shown.
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@
<item>libgnuitar-tubeamp.lv2.so</item>
<item>libgnuitar-distort2-np.lv2.so</item>
<item>libdarc.so</item>
<item>libir_cab.so</item>
</string-array>
<string name="title_activity_settings">Settings</string>

Expand Down

0 comments on commit 4df92a5

Please sign in to comment.