GithubHelp home page GithubHelp logo

airmicrophone-ane's Introduction

AirMicrophone-ANE

This is an Air native extension aiming to replace the Microphone class on iOS. It has been developed by Fovea.

Notes

  • only support activity level monitoring for now.
  • this is WORK IN PROGRESS.

Installation

The ANE binary (AirMicrophone.ane) is located in the bin folder. You should add it to your application project's Build Path and make sure to package it with your app (more information here).

Usage

API's goal is to write the same code than if using flash's Microphone class, except that you include a different class.

import cc.fovea.ane.AirMicrophone.Microphone;

// Initialize the microphone
var mic:Microphone = (Microphone)(Microphone.getMicrophone());

// All this is ignored when using the ANE. Just here for compatibility.
mic.setLoopBack();
mic.addEventListener(StatusEvent.STATUS, onMicStatus); 
[...]

// Start recording
mic.rate = 11; // (or any non-zero value)

// Retrieve activity level
trace(mic.activityLevel);

// Stop recording
mic.rate = 0;

Build script

Should you need to edit the extension source code and/or recompile it, you will find an ant build script (build.xml) in the build folder:

cd /path/to/the/ane

# Setup build configuration
cd build
mv example.build.config build.config
# Edit build.config file to provide your machine-specific paths

# Build the ANE
ant

Authors

This ANE has been written by Jean-Christophe Hoelt. It belongs to Fovea and is distributed under the Apache Licence, version 2.0.

airmicrophone-ane's People

Contributors

j3k0 avatar

Watchers

James Cloos avatar JEONG WON UNG avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.