topical media & game development

talk show tell print

#mobile-application-10-DerbyApp-build-iphone-Classes-SCListener.h / h



  //
  // SCListener 1.0.1
  // http://github.com/stephencelis/sc_listener
  //
  // (c) 2009-* Stephen Celis, <stephen@stephencelis.com>.
  // Released under the MIT License.
  //
  ifdef USE_TI_MEDIA
  
  #import <Foundation/Foundation.h>
  #import <AudioToolbox/AudioQueue.h>
  #import <AudioToolbox/AudioServices.h>
  
  @interface SCListener : NSObject {
          AudioQueueLevelMeterState *levels;
          
          AudioQueueRef queue;
          AudioStreamBasicDescription format;
          Float64 sampleRate;
  }
  
  + (SCListener *)sharedListener;
  
  (void)listen;
  (BOOL)isListening;
  (void)pause;
  (void)stop;
  
  (Float32)averagePower;
  (Float32)peakPower;
  (AudioQueueLevelMeterState *)levels;
  
  @end
  
  endif


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.