Advertisement
Guest User

Untitled

a guest
May 27th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.26 KB | None | 0 0
  1. private abstract class MusicPlayerInterface {
  2.         private ParseProfileManager parseProfileManager = new ParseProfileManager("");
  3.         OmeAudioProcessing mAudioProcessing = new OmeAudioProcessing();
  4.         OmeEarPrint omeEarPrint = null;
  5.  
  6.         public void setAudioProcessing(boolean isOn) {
  7.             if (isOn && !parseProfileManager.isEarPrintSelected()) {
  8.                 omeEarPrint = parseProfileManager.selectHardCodedEarPrint();
  9.             } else {
  10.                 parseProfileManager.clearCurrentEarPrint();
  11.             }
  12.             boolean earPrintSelected = parseProfileManager.isEarPrintSelected();
  13.             Log.d("dd", "Is earPrint selected: " + earPrintSelected);
  14.             mAudioProcessing.setProcessOn(isOn);
  15.             OmeEarPrint currentEarPrint = parseProfileManager.getCurrentEarprint();
  16.             if (currentEarPrint == null)
  17.                 return;
  18.             byte[] profileBuffer = currentEarPrint.getProfileBuffer();
  19.             Log.d("dd", "Profile buffer: " + Arrays.toString(profileBuffer));
  20.         }
  21.  
  22.         public void resetProcessing() {
  23.             mAudioProcessing.resetProcess();
  24.         }
  25.  
  26.         public abstract void playFile(Activity activity, String file);
  27.  
  28.         public abstract void stop();
  29.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement