minim AudioPlayer stop/rewind play again.
in
Core Library Questions
•
1 year ago
hi all!
i´m coding kind of a keyboard, some notes (mp3 samples) are played when buttons are pressed. everything is fine, the problem at the moment is:
i have to fade out sound (works fine) when a button is released... instantly when the button is released. an mp3 is about 10 sec. but if you release the button after 3 sec. the sound has do fade out. i always have to wait until the 10sec. are over because i don´t find a method to stop the player when the sound gain arrives at -80 for example, and the rewind it.
i´d like to stop/rewind after fade out.... can anyone help?
thx a lot
i´m coding kind of a keyboard, some notes (mp3 samples) are played when buttons are pressed. everything is fine, the problem at the moment is:
i have to fade out sound (works fine) when a button is released... instantly when the button is released. an mp3 is about 10 sec. but if you release the button after 3 sec. the sound has do fade out. i always have to wait until the 10sec. are over because i don´t find a method to stop the player when the sound gain arrives at -80 for example, and the rewind it.
i´d like to stop/rewind after fade out.... can anyone help?
thx a lot
1