Accessing Metadata, Audio Example Using Multitouch

Must Read

Overcoming the risks of internationalization

Successful expansion into foreign markets requires extensive research and analysis to determine the advantages and disadvantages of this company....

Application Certification Requirements

To ensure the quality and usability of applications distributed through Windows Marketplace, every application must pass through a validation...

How to Develop Your Signature File

Again, if your email program doesn’t allow for the use of a signature file, you should consider switching email...

When playing AAC files, you have access to metadata information that can be useful for your application. In this example, we are tracing the duration and the codec:

var connection:NetConnection;
connection = new NetConnection();
var stream:NetStream = new NetStream(connection);
// define the stream client property
var metaObject:Object = new Object();
metaObject.onMetaData = onGetMetaData;
stream.client = metaObject;“someAudio.m4a”);
function onGetMetaData(data:Object):void {
// audio duration
trace(data.duration*1000, “milliseconds”);
// codec
for (var prop:String in data) {
trace(prop, data[prop]);

Audio Example Using Multitouch

You can develop a musical instrument or device to trigger audio and music. Android devices only support two simultaneous touches; however, they support a range of gestures.

You can, for instance, use a left-to-right swipe gesture to turn the volume up and a right-to-left swipe gesture to turn the volume down.


Please enter your comment!
Please enter your name here

Latest News

Underlight As Accent, For Power and The Main Light for Photography

Underlighting, in which fill or accent light comes from under the topic, is not widely used technique in the traditional Portraits,...

How To Fix Overexposure As A Creative Tool, The Complete Guide

As an creative tool, overexposure is sort of underrated. What I’m close to propose could be a deliberate and well thought out technique for...

7D Mark II is Canon’s best DSLR cameras without full-frame sensor.

The expected long-awaited Canon EOS 7D Mark II are shipping in November for $ 1,799 without a lens. With a higher price tag, you...

Low key photography and How to isolate your subject.

Low key photography doesn’t depend on underexposure to make its point; the key to low key is that the majority of tones, even correctly...

High Key Lighting Techniques for Professional Photographers

I’ve written many times about high key lighting techniques and how to achieve them. The term “high key” is a bit misleading. As I’ve...

More Articles Like This

blograby facebook like page