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 "UT_NonCopyable.h"
16 #include <SYS/SYS_Types.h>
17 
18 #define UT_AUDIO_MIC_IN 0
19 #define UT_AUDIO_LINE_IN 1
20 #define UT_AUDIO_DIGITAL 2
21 
23 {
24 public:
25 
26  UT_AudioInput(int channels, int rate);
27  virtual ~UT_AudioInput();
28 
30 
31  virtual int open(float queuesize);
32  virtual void close();
33 
34  virtual int hasInput();
35  virtual short * getInput(int size);
36 
37  virtual int getGlobalRate();
38 
39  virtual int setSource(int source);
40  virtual int getSource();
41 
42  virtual int setMicrophoneMode(int stereo);
43  virtual int getMicrophoneMode();
44  virtual int getChannelMode();
45 
46  virtual int setVolume(int speaker, float vol);
47  virtual float getVolume(int speaker);
48 
49  virtual UT_AudioInput * newAudioInputDevice(int channels, int rate);
50 
51  static void setAudioInputDevice(UT_AudioInput *);
52  static UT_AudioInput *getAudioInputDevice();
53 private:
54  static UT_AudioInput * myDevicePtr;
55 
56 };
57 
58 
59 
60 #endif
short * getInput(int size) override
int getSource() override
#define UT_API
Definition: UT_API.h:14
void close() override
UT_AudioInput * newAudioInputDevice(int channels, int rate) override
int open(float queuesize) override
int setVolume(int speaker, float vol) override
int hasInput() override
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:803
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
int getMicrophoneMode() override
GLsizeiptr size
Definition: glcorearb.h:664
int setMicrophoneMode(int stereo) override
int getChannelMode() override
int getGlobalRate() override
int setSource(int source) override
float getVolume(int speaker) override
ImageBuf OIIO_API channels(const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)