Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

custom extention from SoundPool with setOnCompletionListener without the low-efficiency drawback of MediaPlayer

Notifications You must be signed in to change notification settings

eugeneroz/SoundPoolPlayer

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

SoundPoolPlayer

custom extention from Android SoundPool with setOnCompletionListener without the low-efficiency drawback of MediaPlayer.

creation:

SoundPoolPlayer mPlayer = SoundPoolPlayer.create(context, resId);
mPlayer.setOnCompletionListener(
	new MediaPlayer.OnCompletionListener() {
        @Override
        public void onCompletion(MediaPlayer mp) { 	//mp will be null here
        	Log.d("debug", "completed");
        }
	};
);
mPlayer.play()

pause:

mPlayer.pause();

stop:

mPlayer.stop();

resume:

mPlayer.resume();

isPlaying:

mPlayer.isPlaying();

About

custom extention from SoundPool with setOnCompletionListener without the low-efficiency drawback of MediaPlayer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.