aboutsummaryrefslogtreecommitdiff
path: root/src/test/portaudiotest.h
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2015-07-28 21:02:14 -0700
committerMike Crute <mcrute@gmail.com>2015-07-28 21:02:14 -0700
commita771c74e76a22099bbedee3ff32829c465429d90 (patch)
tree77c957b0974f96444012185e23edcc606719c54f /src/test/portaudiotest.h
downloadhd24tools-a771c74e76a22099bbedee3ff32829c465429d90.tar.bz2
hd24tools-a771c74e76a22099bbedee3ff32829c465429d90.tar.xz
hd24tools-a771c74e76a22099bbedee3ff32829c465429d90.zip
Initial importHEADmaster
Diffstat (limited to 'src/test/portaudiotest.h')
-rw-r--r--src/test/portaudiotest.h33
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
6class HD24UserInterface
7{
8private:
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;
26public:
27 HD24UserInterface();
28 bool isportaudioinitialized();
29 void portaudioinit();
30 void portaudio_transport_start();
31};
32
33#endif