You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/audio_unit/audio_format.rs
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,7 @@
3
3
//! See the Core Audio Data Types Reference
4
4
//! [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/Audio_Data_Format_Identifiers) for more info.
5
5
6
-
7
-
use libc;
6
+
use std::os::raw::c_uint;
8
7
9
8
/// A type-safe representation of both the `AudioFormatId` and their associated flags.
10
9
#[derive(Copy,Clone,Debug)]
@@ -175,7 +174,7 @@ pub enum AudioFormat {
175
174
implAudioFormat{
176
175
177
176
/// Convert from the FFI C format and flags to a typesafe Rust enum representation.
Copy file name to clipboardExpand all lines: src/audio_unit/mod.rs
+34-28Lines changed: 34 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,11 @@
19
19
//! fixes!
20
20
21
21
22
-
use bindings::audio_unit as au;
23
22
use error::Error;
24
-
use libc;
25
23
use std::mem;
26
24
use std::ptr;
25
+
use std::os::raw::{c_uint, c_void};
26
+
use sys;
27
27
28
28
pubuseself::audio_format::AudioFormat;
29
29
pubuseself::sample_format::{SampleFormat,Sample};
@@ -52,8 +52,14 @@ pub mod types;
52
52
/// and [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Conceptual/AudioUnitProgrammingGuide/TheAudioUnit/TheAudioUnit.html).
53
53
#[derive(Copy,Clone,Debug)]
54
54
pubenumScope{
55
-
Output = 0,
55
+
Global = 0,
56
56
Input = 1,
57
+
Output = 2,
58
+
Group = 3,
59
+
Part = 4,
60
+
Note = 5,
61
+
Layer = 6,
62
+
LayerItem = 7,
57
63
}
58
64
59
65
/// Represents the **Input** and **Output** **Element**s.
@@ -66,11 +72,11 @@ pub enum Element {
66
72
}
67
73
68
74
69
-
/// A rust representation of the au::AudioUnit, including a pointer to the current rendering callback.
75
+
/// A rust representation of the sys::AudioUnit, including a pointer to the current rendering callback.
70
76
///
71
77
/// Find the original Audio Unit Programming Guide [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Conceptual/AudioUnitProgrammingGuide/TheAudioUnit/TheAudioUnit.html).
0 commit comments