Skip to content

Commit ace15ec

Browse files
committed
Update to bitflags 0.7
1 parent d4e7b01 commit ace15ec

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ homepage = "https://github.com/RustAudio/coreaudio-rs"
1414
name = "coreaudio"
1515

1616
[dependencies]
17-
bitflags = "0.3.2"
18-
coreaudio-sys = "0.1.2"
19-
libc = "0.2.1"
17+
bitflags = "0.7"
18+
coreaudio-sys = "0.1"
19+
libc = "0.2"

src/audio_unit/audio_format.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ pub mod standard_flags {
279279
/// the **AudioFormat** type.
280280
///
281281
/// Original documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/AudioStreamBasicDescription_Flags).
282-
flags StandardFlags: u32 {
282+
pub flags StandardFlags: u32 {
283283
/// Set for floating point, clear for integer.
284284
///
285285
/// **Available** in OS X v10.2 and later.
@@ -337,7 +337,7 @@ pub mod linear_pcm_flags {
337337
/// the **AudioFormat** type.
338338
///
339339
/// Original documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/AudioStreamBasicDescription_Flags).
340-
flags LinearPCMFlags: u32 {
340+
pub flags LinearPCMFlags: u32 {
341341
/// Synonmyn for the **IS_FLOAT** **StandardFlags**.
342342
///
343343
/// **Available** in OS X v10.0 and later.
@@ -404,7 +404,7 @@ pub mod apple_lossless_flags {
404404
/// the **AudioFormat** type.
405405
///
406406
/// Original documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/AudioStreamBasicDescription_Flags).
407-
flags AppleLosslessFlags: u32 {
407+
pub flags AppleLosslessFlags: u32 {
408408
/// Sourced from 16 bit native endian signed integer data.
409409
const BIT_16_SOURCE_DATA = 1,
410410
/// Sourced from 20 bit native endian signed integer data aligned high in 24 bits.
@@ -483,7 +483,7 @@ pub mod audio_time_stamp_flags {
483483
/// **Available** in OS X v10.0 and later.
484484
///
485485
/// Original Documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/Audio_Time_Stamp_Flags).
486-
flags AudioTimeStampFlags: u32 {
486+
pub flags AudioTimeStampFlags: u32 {
487487
/// The sample frame time is valid.
488488
const SAMPLE_TIME_VALID = 1,
489489
/// The host time is valid.

src/audio_unit/render_callback.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ pub mod action_flags {
224224
use bindings::audio_unit as au;
225225

226226
bitflags!{
227-
flags ActionFlags: u32 {
227+
pub flags ActionFlags: u32 {
228228
/// Called on a render notification Proc, which is called either before or after the
229229
/// render operation of the audio unit. If this flag is set, the proc is being called
230230
/// before the render operation is performed.

0 commit comments

Comments
 (0)