Commit 25435e14 authored by Ethan Liang's avatar Ethan Liang
Browse files

the sound errors are all fixed, updated sound file

parent 3a5aa221
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -140,7 +140,9 @@ public class ChalkActivity extends AppCompatActivity implements View.OnClickList
            } else if(selectedAnswer.equals(ChalkQuestionAnswer.correctAnswers[currentQuestionIndex])){
                //SFX
                MediaPlayer correctSound = MediaPlayer.create(this, R.raw.correct);
                if (currentQuestionIndex != 3) {
                    correctSound.start();
                }
                selectedAnswer = "";
                chalkscore++;
                currentQuestionIndex++;
+2 −1
Original line number Diff line number Diff line
@@ -11,11 +11,12 @@ import android.widget.Button;
public class ChalkGameRIPActivity extends AppCompatActivity {
    private Button resButton;

    MediaPlayer ripSound = MediaPlayer.create(getApplicationContext(), R.raw.gta_wasted);
    MediaPlayer ripSound;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ripSound = MediaPlayer.create(getApplicationContext(), R.raw.gta_wasted);
        ripSound.start();
        setContentView(R.layout.activity_chalk_game_ripactivity);
        resButton = findViewById(R.id.ChalkRIPResume);
+2 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ public class ChalkResultActivity extends AppCompatActivity { //
    int lastChalkScore;
    int bestChalk;

MediaPlayer winSound = MediaPlayer.create(getApplicationContext(), R.raw.eerie_win);
    MediaPlayer winSound;

    Button submitBtn;

@@ -34,6 +34,7 @@ MediaPlayer winSound = MediaPlayer.create(getApplicationContext(), R.raw.eerie_w
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_name_result);
        winSound = MediaPlayer.create(this, R.raw.eerie_win);
        winSound.start();
        Log.d("CHALKRESULT", "onCreate after sound start");
        Window window = getWindow();
+2 −2
Original line number Diff line number Diff line
@@ -11,11 +11,11 @@ import android.widget.Button;
public class ChalkToQuizActivity extends AppCompatActivity {
    private Button resButton;

    MediaPlayer victorySound = MediaPlayer.create(getApplicationContext(), R.raw.valorant_ace);

    MediaPlayer victorySound;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        victorySound = MediaPlayer.create(getApplicationContext(), R.raw.valorant_ace);
        victorySound.start();
        setContentView(R.layout.activity_chalk_to_quiz);
        resButton = findViewById(R.id.ChalktoQuizResume);
+102 KiB

File added.

No diff preview for this file type.

Loading