HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_AudioInput.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_AudioInput.h ( AU Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __UT_AudioInput__
12 #define __UT_AudioInput__
13 
14 #include "UT_API.h"
15 #include <SYS/SYS_Types.h>
16 
17 #define UT_AUDIO_MIC_IN 0
18 #define UT_AUDIO_LINE_IN 1
19 #define UT_AUDIO_DIGITAL 2
20 
22 {
23 public:
24 
25  UT_AudioInput(int channels, int rate);
26  virtual ~UT_AudioInput();
27 
28  virtual int open(float queuesize);
29  virtual void close();
30 
31  virtual int hasInput();
32  virtual short * getInput(int size);
33 
34  virtual int getGlobalRate();
35 
36  virtual int setSource(int source);
37  virtual int getSource();
38 
39  virtual int setMicrophoneMode(int stereo);
40  virtual int getMicrophoneMode();
41  virtual int getChannelMode();
42 
43  virtual int setVolume(int speaker, float vol);
44  virtual float getVolume(int speaker);
45 
46  virtual UT_AudioInput * newAudioInputDevice(int channels, int rate);
47 
48  static void setAudioInputDevice(UT_AudioInput *);
49  static UT_AudioInput *getAudioInputDevice();
50 private:
51  static UT_AudioInput * myDevicePtr;
52 
53 };
54 
55 
56 
57 #endif
virtual int setMicrophoneMode(int stereo)
virtual int getSource()
virtual int hasInput()
virtual float getVolume(int speaker)
#define UT_API
Definition: UT_API.h:13
GLsizeiptr size
Definition: glcorearb.h:663
virtual int getMicrophoneMode()
virtual int setSource(int source)
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:802
virtual UT_AudioInput * newAudioInputDevice(int channels, int rate)
virtual int open(float queuesize)
virtual short * getInput(int size)
virtual int setVolume(int speaker, float vol)
virtual void close()
virtual int getChannelMode()
virtual int getGlobalRate()