Skip to content

Commit 90d49fc

Browse files
authored
Updated bitflags to 2.10 (#144)
1 parent 65ee263 commit 90d49fc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ audio_unit = ["audio_toolbox"]
3434
open_al = []
3535

3636
[dependencies]
37-
bitflags = "1.0"
37+
bitflags = "2.10"
3838
libc = "0.2"
3939
objc2-core-foundation = { version = "0.3", optional = true, default-features = false, features = [
4040
"std",

src/audio_unit/audio_format.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ bitflags! {
303303
/// the **AudioFormat** type.
304304
///
305305
/// Original documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/AudioStreamBasicDescription_Flags).
306+
#[derive(Copy, Clone, Debug)]
306307
pub struct StandardFlags: u32 {
307308
/// Set for floating point, clear for integer.
308309
///
@@ -357,6 +358,7 @@ bitflags! {
357358
/// the **AudioFormat** type.
358359
///
359360
/// Original documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/AudioStreamBasicDescription_Flags).
361+
#[derive(Copy, Clone, Debug)]
360362
pub struct LinearPcmFlags: u32 {
361363
/// Synonym for the **IS_FLOAT** **StandardFlags**.
362364
///
@@ -420,6 +422,7 @@ bitflags! {
420422
/// the **AudioFormat** type.
421423
///
422424
/// Original documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/AudioStreamBasicDescription_Flags).
425+
#[derive(Copy, Clone, Debug)]
423426
pub struct AppleLosslessFlags: u32 {
424427
/// Sourced from 16 bit native endian signed integer data.
425428
const BIT_16_SOURCE_DATA = kAppleLosslessFormatFlag_16BitSourceData;
@@ -496,6 +499,7 @@ bitflags! {
496499
/// **Available** in OS X v10.0 and later.
497500
///
498501
/// Original Documentation [here](https://developer.apple.com/library/mac/documentation/MusicAudio/Reference/CoreAudioDataTypesRef/#//apple_ref/doc/constant_group/Audio_Time_Stamp_Flags).
502+
#[derive(Copy, Clone, Debug)]
499503
pub struct AudioTimeStampFlags: u32 {
500504
/// The sample frame time is valid.
501505
const SAMPLE_TIME_VALID = Objc2AudioTimeStampFlags::SampleTimeValid.0;

0 commit comments

Comments
 (0)