package com.example.raceonthemaidan; import android.content.Context; import android.media.MediaPlayer; public class Music { private static MediaPlayer start=null; public static void initialize(Context context){ start=MediaPlayer.create(context, R.raw.start); } public static void playStartMelody(){ if (!start.isPlaying()) start.start(); else start.seekTo(0); } public static void stopStartMelody(){ if (start.isPlaying()) start.release(); } }