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
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
GLsizeiptr size
Definition: glcorearb.h:664
int open(float queuesize) override
int setVolume(int speaker, float vol) override
int hasInput() override
GLsizei GLsizei GLchar * source
Definition: glcorearb.h:803
int getMicrophoneMode() override
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)