PageRenderTime 10ms CodeModel.GetById 5ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 9#import <Foundation/Foundation.h>
10#include <CoreAudio/CoreAudio.h>
11
12
13@interface SoundSampler : NSObject {
14    
15    @private
16    
17    IBOutlet NSPopUpButton * ODeviceList;
18    IBOutlet NSSlider      * OSoundVolume;
19
20    AudioDeviceID oldDevice, curDevice;
21    
22    signed short data[3][2][512];
23    int BufferIndexReady, BufferIndexRead, BufferIndexWrite;
24    NSLock * BufferLock;
25}
26
27+(SoundSampler*)sharedSampler;
28-(void*)getData;
29-(void)	UpdateDeviceList;
30-(void)updateBuffer:(const AudioBufferList *)inInputData withDevice:(AudioDeviceID)inDevice;
31
32-(IBAction)changeAudioDevice:(id)sender;
33-(IBAction)changeAudioVolume:(id)sender;
34-(void)refreshAudioVolumeInterface:(float)value;
35
36@end