how to get channel count of audio file

[postlink] https://the-best-way-of-life-is-islam.blogspot.com/2015/07/how-to-get-channel-count-of-audio-file.html [/postlink]

I am trying to retrieve the channel count of a .wav sound file using TrackInfo and MediaFormat but I cant seem to get a handle of a MediaFormat object which i believe would provide the channel count.

I have tried following this instruction but it is not helping.

here is what I have so far

mediaPlayer = new MediaPlayer();
    mediaPlayer.setDataSource(soundPath);
    mediaPlayer.prepare();

    TrackInfo info = mediaPlayer.getTrackInfo()[0];
    MediaFormat mf = 

اذا أعجبك الموضوع ساهم في نشره :

Enregistrer un commentaire

 
حقوق النشر: Published by | Template Created by | القناة على اليوتيب
copyright © 2014. The Best Way Of Life Is Islam -يمكن نقل كل ما هو موجود في موقع الرحمة تيوب
القرآن الكريم و الأحاديث النبوية أناشيد و دروس اسلامية منوعة موقع الفيديوهات الاسلامية
تطوير و تعريب مدونة ثعلوب