Determining audioformat of audio files in Android

Posted by moppel on Stack Overflow See other posts from Stack Overflow or by moppel
Published on 2010-05-08T12:15:54Z Indexed on 2010/05/08 12:18 UTC
Read the original article Hit count: 235

Filed under:

Is there a way to determine the audio format of an audio file in Android? On normal java I do it like this:

File file= new File(...);
AudioInputStream stream = AudioSystem.getAudioInputStream(file);
AudioFormat format= stream.getFormat();

© Stack Overflow or respective owner

Related posts about android