Android Question Use of many media players

hub73

Active Member
Licensed User
Longtime User
Hello.
I've finished my project (broadcast player like) but i'm not sure with my Mediaplayer logic.
I also use a playlist system inside the program. So, i finally use 23 Mediaplayers for this !
I read the files one after the other (each file : one mediaplayer). (stop between files)
Sometimes i play two files at the same time (music file and vocal file).
sometimes when i lauch the the 16th file and next. This no work. Perhaps a memory issue ? Too much mediaplayer ?
(i use wav files.)

Is there a best method for best memory management (free some mediaplayer)

i can't post all the project code here, please test b4a_cartoucheur.zip

Many thanks.
 

Attachments

  • b4a_cartoucheur.zip
    35.8 KB · Views: 221

Midimaster

Active Member
Licensed User
You could combine all your parrallel WAVs and send it to a single AudioStreamer. In this tutorial...

AudioRingBuffer Tutorial

... I demonstrate to use a single stream for many audios. The Ringbuffer combines them and also overlapping is no problem
 
Upvote 0

hub73

Active Member
Licensed User
Longtime User
i've another idea, just use 5 mediaplayers ... it's time to return to code ;-)
 
Upvote 0
Top