Skip to content

Commit 40fcca3

Browse files
committed
Replace flags keyword with struct for bitflags 1.0
1 parent a7108e0 commit 40fcca3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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-
pub flags StandardFlags: u32 {
282+
pub struct 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-
pub flags LinearPCMFlags: u32 {
340+
pub struct 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-
pub flags AppleLosslessFlags: u32 {
407+
pub struct 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-
pub flags AudioTimeStampFlags: u32 {
486+
pub struct 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
@@ -225,7 +225,7 @@ pub mod action_flags {
225225
use bindings::audio_unit as au;
226226

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

0 commit comments

Comments
 (0)