Now I want to create a simple media player for Mobile. It开发者_Python百科 will read a music file (default : mp3), then play it and display spectrum on screen. But now I don't know how to analyse a music file. Please tell me way to analyse it. Thank you so much !
You don't have to parse the input files in order to get to the samples. Instead you can capture the sound currently played to get your hands on the raw audio data. To draw a spectrum visualization of this you would have to perform a FFT on this data and the use the result to render your bars (or whatever you choose for you visuals).
精彩评论