-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenal-context-capture.ads
54 lines (41 loc) · 1.44 KB
/
openal-context-capture.ads
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
45
46
47
48
49
50
51
52
53
54
with OpenAL.Buffer;
with OpenAL.Types;
package OpenAL.Context.Capture is
--
-- API
--
type Buffer_Size_t is range 2 .. 65536;
-- proc_map : alcCaptureOpenDevice
function Open_Device
(Name : in String;
Frequency : in Types.Frequency_t;
Format : in OpenAL.Context.Request_Format_t;
Buffer_Size : in Buffer_Size_t) return Device_t;
-- proc_map : alcCaptureOpenDevice
function Open_Default_Device
(Frequency : in Types.Frequency_t;
Format : in OpenAL.Context.Request_Format_t;
Buffer_Size : in Buffer_Size_t) return Device_t;
-- proc_map : alcCaptureCloseDevice
procedure Close_Device (Device : in out Device_t);
-- proc_map : alcCaptureStart
procedure Start (Device : in Device_t);
-- proc_map : alcCaptureStop
procedure Stop (Device : in Device_t);
-- proc_map : alcCaptureSamples
procedure Samples_Mono_8
(Device : in Device_t;
Samples : out OpenAL.Buffer.Sample_Array_8_t);
-- proc_map : alcCaptureSamples
procedure Samples_Stereo_8
(Device : in Device_t;
Samples : out OpenAL.Buffer.Sample_Array_8_t);
-- proc_map : alcCaptureSamples
procedure Samples_Mono_16
(Device : in Device_t;
Samples : out OpenAL.Buffer.Sample_Array_16_t);
-- proc_map : alcCaptureSamples
procedure Samples_Stereo_16
(Device : in Device_t;
Samples : out OpenAL.Buffer.Sample_Array_16_t);
end OpenAL.Context.Capture;