I am a noob at programming.
I used Sound pool for Drum Pads, and I have a problem.
The thing is, a drum pad makes the sound when I release the pad, but not when I press it. (onClick)
Can someone help me with that?
And also i want to some of the pads play while pad is pressed, and the sound should stop when I release the button.
Thank you for attention, have a good day.
code:
I am a noob at programming. I used Sound pool for Drum Pads, and I have a problem. The thing is, a drum pad makes the sound when I release the pad, but not when I press it. (onClick) Can someone help me with that?
And also i want to some of the pads play while pad is pressed, and the sound should stop when I release the button. Thank you for attention, have a good day. code:
package com.armooq.midimpc;
import android.media.AudioAttributes; import android.media.AudioManager; import android.media.SoundPool; import android.os.Build; import android.os.Bundle; import android.view.View; import android.view.Window; import android.view.WindowManager;
import androidx.appcompat.app.AppCompatActivity;
public class MPC extends AppCompatActivity {
}