Android Question take time from a wav file

ALISSON P C SILVA

Member
Licensed User
I need use the time of wav file to create a sequence of audios. Is there a code that allows me to obtain and use this information?
 

JohnC

Expert
Licensed User
Longtime User
If you mean is there a way to find out how long (in seconds) a wav is, then yes, you can load the wav file into a MediaPlayer object and then read the .Duration property.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…