Not needed to be global

This commit is contained in:
Yuri 2017-03-10 15:07:37 +03:00 committed by GitHub
parent c5d064da54
commit 51721e2813
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,6 @@ public class MainActivity extends AppCompatActivity {
final int REQUEST_PERMISSION_RECORD_AUDIO = 1;
TextView subtitles;
ImageView kurisu;
AnimationDrawable animation;
Boolean isLoop = false;
Boolean isSpeaking = false;
VoiceLine[] voiceLines = VoiceLine.Line.getLines();
@ -186,6 +185,7 @@ public class MainActivity extends AppCompatActivity {
}
public void speak(VoiceLine line) {
AnimationDrawable animation;
m = MediaPlayer.create(getApplicationContext(), line.getId());
final Visualizer v = new Visualizer(m.getAudioSessionId());