Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private abstract class MusicPlayerInterface {
- private ParseProfileManager parseProfileManager = new ParseProfileManager("");
- OmeAudioProcessing mAudioProcessing = new OmeAudioProcessing();
- OmeEarPrint omeEarPrint = null;
- public void setAudioProcessing(boolean isOn) {
- if (isOn && !parseProfileManager.isEarPrintSelected()) {
- omeEarPrint = parseProfileManager.selectHardCodedEarPrint();
- } else {
- parseProfileManager.clearCurrentEarPrint();
- }
- boolean earPrintSelected = parseProfileManager.isEarPrintSelected();
- Log.d("dd", "Is earPrint selected: " + earPrintSelected);
- mAudioProcessing.setProcessOn(isOn);
- OmeEarPrint currentEarPrint = parseProfileManager.getCurrentEarprint();
- if (currentEarPrint == null)
- return;
- byte[] profileBuffer = currentEarPrint.getProfileBuffer();
- Log.d("dd", "Profile buffer: " + Arrays.toString(profileBuffer));
- }
- public void resetProcessing() {
- mAudioProcessing.resetProcess();
- }
- public abstract void playFile(Activity activity, String file);
- public abstract void stop();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement