• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Pop Soundboard

AppAndArt

Lurker
Hey people, i have made another soundboard using a similar design. Check it out. The POP SOUNDBOARD is a GREAT collection of your favorite singers and their signature sounds and phrases. 120 sounds from 40 famous singers. Choose your favorite ones, save them, use as ring tones alarm and notification signals with just 2 clicks.
Android market link
Youtube link
nFNFBNdyKyaxLn7OPRPiSE5wSE1GRXrmBMin3_bkuQOtc9pV1zugpZuTPKyxeJ_A0bk
9ZOwpftn6QNS6gGajfQq4Hq-pRI6lNHM7B4WzdGZhm8KJ3aB2glR5z6-Ezm5WyENqgo
 
hey nice app, can i ask did you use mediaplayer or soundpool, if mediaplayer how did you stop the sounds from still playing when you click the home button?

Thanks!

Will download this when i get my android phone
 
I used MediaPlayer. I have class with private static final MediaPlayer
and method which plays sound.

Code:
 private static final MediaPlayer mediaPlayer = new MediaPlayer();

 public static void playSample(Context context, int resid) {
         AssetFileDescriptor afd = context.getResources().openRawResourceFd(resid);
         try {
             mediaPlayer.reset();
             mediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getDeclaredLength());
             mediaPlayer.prepare();
             mediaPlayer.start();
             afd.close();
         } catch (IllegalArgumentException e) {
             ....
         } catch (IllegalStateException e) {
             ....
         } catch (IOException e) {
             ....
         }
     }
I done it this way because of ListView items are collected with garbage collector during scrolling (when they get out of screen).

In next update i'll try to implement concurrent playback of sounds. I have some problems with it.
 
Back
Top Bottom