Skip to content

Commit

Permalink
tap to activate tuner does that
Browse files Browse the repository at this point in the history
going to implement video record
  • Loading branch information
Shaji Khan committed Nov 6, 2023
1 parent b268f8c commit 9151787
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/release/output-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"type": "SINGLE",
"filters": [],
"attributes": [],
"versionCode": 62,
"versionName": "3.71-Nighthawk",
"versionCode": 68,
"versionName": "3.78-Nighthawk",
"outputFile": "app-release.apk"
}
],
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.MySplash">
<activity
android:name=".Camera"
android:label="Camera"
android:theme="@style/Theme.AmpRack"
android:exported="false" />
<activity
android:name=".FeaturedVideos"
android:exported="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ protected void onCreate(Bundle savedInstanceState) {
hashCommands = new HashCommands(this);
hashCommands.setMainActivity(this);
hashCommands.add (this, "AudioRecordTest");
hashCommands.add (this, "cameraPreview");
hashCommands.add(this, "saveActivePreset");
hashCommands.add(this, "printActivePreset");
hashCommands.add(this, "proDialog");
Expand Down Expand Up @@ -2911,4 +2912,10 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
toggleButton.setOnCheckedChangeListener(listener);
dialog.show();
}

public void cameraPreview() {
Intent intent = new Intent(context, Camera.class);
startActivity(intent);

}
}
3 changes: 2 additions & 1 deletion app/src/main/java/com/shajikhan/ladspa/amprack/Rack.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
}
});

patchDown = mainActivity.findViewById(R.id.patch_down);
mainActivity.pluginDialog = mainActivity.createPluginDialog();
if (mainActivity.useTheme)
mainActivity.linearLayoutPluginDialog.post(new Runnable() {
Expand All @@ -179,6 +180,7 @@ public void onClick(View v) {
AudioEngine.setTunerEnabled(false);
mainActivity.tuner.setText("Tap to activate Tuner");
} else {
patchDown.performClick();
AudioEngine.setTunerEnabled(true);
}
}
Expand Down Expand Up @@ -679,7 +681,6 @@ public void onValueChange(@NonNull Slider slider, float value, boolean fromUser)

ToggleButton toggleButton = mainActivity.findViewById(R.id.onofftoggle);
patchUp = mainActivity.findViewById(R.id.patch_up);
patchDown = mainActivity.findViewById(R.id.patch_down);
TextView patchName = mainActivity.findViewById(R.id.patch_name),
patchNo = mainActivity.findViewById(R.id.patch_no);

Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,6 @@
<string name="lame_preset_desc">Select Standard for (almost) transparent quality, although medium would suffice as well. Standard preset should generally be transparent to most people on most music and is already quite high in quality.</string>
<string name="title_activity_purchase">Purchase</string>
<string name="pro_features">
For a limited time, 100 users can get free pro upgrade!\n\nJust upload a video to any social media site with the hashtag #amprack and get free pro! 100 top trending videos will stand to win free pro upgrades every month.\n\n
This is an open source app. You can support its development and unlock all features by purchasing the pro version:\n\n
> One time purchase (No subscription)\n
> Unlimited effects chain\n
Expand Down

0 comments on commit 9151787

Please sign in to comment.