Adding level metering APIs. Adding casts to get rid of Xcode warnings.

Added some APIs that make it easy to get the current audio level. These are named the same as the similar APIs in AVAudioPlayer. This makes it possible to create visual audio visualizers.

Also added casts to get rid of Xcode warnings. This just makes explicit what was happening implicitly in order to appease Xcode.