@@ -344,52 +344,6 @@ bitflags! {
344
344
}
345
345
}
346
346
347
- /// Special sink flags.
348
- #[ deprecated( since = "2.20.0" , note = "Use the associated constants on `SinkFlagSet`." ) ]
349
- pub mod sink_flags {
350
- use super :: SinkFlagSet ;
351
-
352
- /// Flag to pass when no specific options are needed.
353
- pub const NOFLAGS : SinkFlagSet = SinkFlagSet :: NOFLAGS ;
354
-
355
- /// Supports hardware volume control. This is a dynamic flag and may change at runtime after the
356
- /// sink has initialized.
357
- pub const HW_VOLUME_CTRL : SinkFlagSet = SinkFlagSet :: HW_VOLUME_CTRL ;
358
-
359
- /// Supports latency querying.
360
- pub const LATENCY : SinkFlagSet = SinkFlagSet :: LATENCY ;
361
-
362
- /// Is a hardware sink of some kind, in contrast to “virtual”/software sinks.
363
- pub const HARDWARE : SinkFlagSet = SinkFlagSet :: HARDWARE ;
364
-
365
- /// Is a networked sink of some kind.
366
- pub const NETWORK : SinkFlagSet = SinkFlagSet :: NETWORK ;
367
-
368
- /// Supports hardware mute control. This is a dynamic flag and may change at runtime after the
369
- /// sink has initialized.
370
- pub const HW_MUTE_CTRL : SinkFlagSet = SinkFlagSet :: HW_MUTE_CTRL ;
371
-
372
- /// Volume can be translated to dB with the `From` based conversions between [`Volume`],
373
- /// [`VolumeLinear`] and [`VolumeDB`] types. This is a dynamic flag and may change at runtime
374
- /// after the sink has initialized.
375
- ///
376
- /// [`Volume`]: crate::volume::Volume
377
- /// [`VolumeDB`]: crate::volume::VolumeDB
378
- /// [`VolumeLinear`]: crate::volume::VolumeLinear
379
- pub const DECIBEL_VOLUME : SinkFlagSet = SinkFlagSet :: DECIBEL_VOLUME ;
380
-
381
- /// This sink is in flat volume mode, i.e. always the maximum of the volume of all connected
382
- /// inputs.
383
- pub const FLAT_VOLUME : SinkFlagSet = SinkFlagSet :: FLAT_VOLUME ;
384
-
385
- /// The latency can be adjusted dynamically depending on the needs of the connected streams.
386
- pub const DYNAMIC_LATENCY : SinkFlagSet = SinkFlagSet :: DYNAMIC_LATENCY ;
387
-
388
- /// The sink allows setting what formats are supported by the connected hardware. The actual
389
- /// functionality to do this might be provided by an extension.
390
- pub const SET_FORMATS : SinkFlagSet = SinkFlagSet :: SET_FORMATS ;
391
- }
392
-
393
347
/// Sink state.
394
348
#[ repr( C ) ]
395
349
#[ derive( Debug , Copy , Clone , PartialEq , Eq ) ]
@@ -495,48 +449,6 @@ bitflags! {
495
449
}
496
450
}
497
451
498
- /// Special source flags.
499
- #[ deprecated( since = "2.20.0" , note = "Use the associated constants on `SourceFlagSet`." ) ]
500
- pub mod source_flags {
501
- use super :: SourceFlagSet ;
502
-
503
- /// Flag to pass when no specific options are needed.
504
- pub const NOFLAGS : SourceFlagSet = SourceFlagSet :: NOFLAGS ;
505
-
506
- /// Supports hardware volume control. This is a dynamic flag and may change at runtime after the
507
- /// source has initialized.
508
- pub const HW_VOLUME_CTRL : SourceFlagSet = SourceFlagSet :: HW_VOLUME_CTRL ;
509
-
510
- /// Supports latency querying.
511
- pub const LATENCY : SourceFlagSet = SourceFlagSet :: LATENCY ;
512
-
513
- /// Is a hardware source of some kind, in contrast to “virtual”/software source.
514
- pub const HARDWARE : SourceFlagSet = SourceFlagSet :: HARDWARE ;
515
-
516
- /// Is a networked source of some kind.
517
- pub const NETWORK : SourceFlagSet = SourceFlagSet :: NETWORK ;
518
-
519
- /// Supports hardware mute control. This is a dynamic flag and may change at runtime after the
520
- /// source has initialized.
521
- pub const HW_MUTE_CTRL : SourceFlagSet = SourceFlagSet :: HW_MUTE_CTRL ;
522
-
523
- /// Volume can be translated to dB with the `From` based conversions between [`Volume`],
524
- /// [`VolumeLinear`] and [`VolumeDB`] types. This is a dynamic flag and may change at runtime
525
- /// after the source has initialized.
526
- ///
527
- /// [`Volume`]: crate::volume::Volume
528
- /// [`VolumeDB`]: crate::volume::VolumeDB
529
- /// [`VolumeLinear`]: crate::volume::VolumeLinear
530
- pub const DECIBEL_VOLUME : SourceFlagSet = SourceFlagSet :: DECIBEL_VOLUME ;
531
-
532
- /// The latency can be adjusted dynamically depending on the needs of the connected streams.
533
- pub const DYNAMIC_LATENCY : SourceFlagSet = SourceFlagSet :: DYNAMIC_LATENCY ;
534
-
535
- /// This source is in flat volume mode, i.e. always the maximum of the volume of all connected
536
- /// outputs.
537
- pub const FLAT_VOLUME : SourceFlagSet = SourceFlagSet :: FLAT_VOLUME ;
538
- }
539
-
540
452
/// Source state.
541
453
#[ repr( C ) ]
542
454
#[ derive( Debug , Copy , Clone , PartialEq , Eq ) ]
0 commit comments