diff options
Diffstat (limited to 'src/test/portaudiotest.h')
-rw-r--r-- | src/test/portaudiotest.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/portaudiotest.h b/src/test/portaudiotest.h new file mode 100644 index 0000000..f3dbe32 --- /dev/null +++ b/src/test/portaudiotest.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #ifndef __portaudiotest_h__ | ||
2 | #define __portaudiotest_h__ | ||
3 | #ifndef __uint32 | ||
4 | #define __uint32 unsigned long | ||
5 | #endif | ||
6 | class HD24UserInterface | ||
7 | { | ||
8 | private: | ||
9 | PaStream* portaudiostream; | ||
10 | bool m_isportaudioinitialized; | ||
11 | bool havestreamtime; | ||
12 | PaTime streamtime; | ||
13 | PaTime timeoffset; | ||
14 | static int portaudio_process | ||
15 | ( | ||
16 | const void *inputBuffer, | ||
17 | void *outputBuffer, | ||
18 | __uint32 nframes, | ||
19 | const PaStreamCallbackTimeInfo* timeinfo, | ||
20 | PaStreamCallbackFlags, | ||
21 | void *userData | ||
22 | ); | ||
23 | |||
24 | PaStreamParameters* inputParameters; | ||
25 | PaStreamParameters* outputParameters; | ||
26 | public: | ||
27 | HD24UserInterface(); | ||
28 | bool isportaudioinitialized(); | ||
29 | void portaudioinit(); | ||
30 | void portaudio_transport_start(); | ||
31 | }; | ||
32 | |||
33 | #endif | ||