Hi,
I have a question that I'm hoping any of you can answer. I've been playing around with AVAudioPlayer from the AVFoundation framework. I'm really glad to have it (since firmware 2.2), because frankly AVAudioQueue was getting on my nerves.
I've got a button that plays an mp3 sound when pressed, but I want to be able to use peak level information. I'm assuming I've got it all working right, but I have no idea how to make an interface element, say a label to start with, and get it updated regularly with the metering information from AVAudioPlayer's peakPowerForChannel method.
I mean, I have my ViewController and it's implementing the AVAudioPlayerDelegate protocol, but I don't see any method or something that I could implement. I guess this is basic Cocoa Touch for most of you, but I'm just starting to figure this out.
So, how do I get a label up that represents what I get from peakPowerForChannel when the sound plays?
I have a question that I'm hoping any of you can answer. I've been playing around with AVAudioPlayer from the AVFoundation framework. I'm really glad to have it (since firmware 2.2), because frankly AVAudioQueue was getting on my nerves.
I've got a button that plays an mp3 sound when pressed, but I want to be able to use peak level information. I'm assuming I've got it all working right, but I have no idea how to make an interface element, say a label to start with, and get it updated regularly with the metering information from AVAudioPlayer's peakPowerForChannel method.
I mean, I have my ViewController and it's implementing the AVAudioPlayerDelegate protocol, but I don't see any method or something that I could implement. I guess this is basic Cocoa Touch for most of you, but I'm just starting to figure this out.
So, how do I get a label up that represents what I get from peakPowerForChannel when the sound plays?