/xbmc/visualizations/Goom/goom2k4-0/mac/StandAlone/SoundSampler.h

http://github.com/xbmc/xbmc · C++ Header · 36 lines · 19 code · 10 blank · 7 comment · 0 complexity · 4d694c8c5005cf2f5847f8becb9203ab MD5 · raw file

  1. //
  2. // SoundSampler.h
  3. // iGoom
  4. //
  5. // Created by Guillaume Borios on Thu May 27 2004.
  6. // Copyright (c) 2004 iOS. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #include <CoreAudio/CoreAudio.h>
  10. @interface SoundSampler : NSObject {
  11. @private
  12. IBOutlet NSPopUpButton * ODeviceList;
  13. IBOutlet NSSlider * OSoundVolume;
  14. AudioDeviceID oldDevice, curDevice;
  15. signed short data[3][2][512];
  16. int BufferIndexReady, BufferIndexRead, BufferIndexWrite;
  17. NSLock * BufferLock;
  18. }
  19. +(SoundSampler*)sharedSampler;
  20. -(void*)getData;
  21. -(void) UpdateDeviceList;
  22. -(void)updateBuffer:(const AudioBufferList *)inInputData withDevice:(AudioDeviceID)inDevice;
  23. -(IBAction)changeAudioDevice:(id)sender;
  24. -(IBAction)changeAudioVolume:(id)sender;
  25. -(void)refreshAudioVolumeInterface:(float)value;
  26. @end