-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathasio_device.h
44 lines (33 loc) · 945 Bytes
/
asio_device.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef CAMX_ASIODEVICE
#define CAMX_ASIODEVICE 1
#include "audiodevice.h"
#ifdef WIN32
#include "asio/asio.h"
#endif
class AudioHardwareChannel_ASIO;
class AudioDevice_ASIO:public AudioDevice
{
public:
AudioDevice_ASIO();
void MessageASIOError(char *from,ASIOError error);
void SkipDeviceOutputBuffer(Seq_Song *);
void InitMinMaxPrefBufferSizes();
bool CheckAudioDevice(char *name);
bool OpenAudioDevice(char *name);
AudioHardwareChannel_ASIO *GetAsioHWChannel(int index,int asiotype,bool inputchannel);
void InitLatencies(); //
bool InitAudioDeviceChannels();
void StartAudioHardware();
void StopAudioHardware();
int GetSamplePosition();
void CloseDeviceDriver();
void Reset(int flag);
void ASIOCall(long index);
#ifdef WIN32
ASIOBufferInfo *bufferarray;
ASIOSampleType asiotype; // sample type
int bufferarraychannels,bufferarrayplaybackchannels,bufferarrayrecordchannels;
bool asiouseoutready;
#endif
};
#endif