Per-stream audio properties.
More...
#include <StormByte/multimedia/property/audio.hxx>
Per-stream audio properties.
- Note
- DLL exchange requires compatible C++ ABIs. Base and Multimedia must remain loaded while their values and provider callbacks are in use.
◆ Audio() [1/4]
| StormByte::Multimedia::Property::Audio::Audio |
( |
| ) |
|
Constructs unknown audio properties with no codec profile.
- Exceptions
-
◆ Audio() [2/4]
Constructs audio properties.
- Parameters
-
| layout | Speaker layout. |
| sample_rate | Sample rate in Hz. |
| channels | Channel count. |
| bitrate | Bitrate in bits per second (0 if unknown). |
| profile | Optional codec profile name. |
◆ Audio() [3/4]
| StormByte::Multimedia::Property::Audio::Audio |
( |
const Audio & | other | ) |
|
Copy constructor.
- Parameters
-
- Exceptions
-
◆ Audio() [4/4]
| StormByte::Multimedia::Property::Audio::Audio |
( |
Audio && | other | ) |
|
|
noexcept |
Move constructor.
- Parameters
-
◆ ~Audio()
| StormByte::Multimedia::Property::Audio::~Audio |
( |
| ) |
|
|
noexcept |
◆ BitRate()
| std::uint64_t StormByte::Multimedia::Property::Audio::BitRate |
( |
| ) |
const |
|
noexcept |
Bitrate in bits per second.
- Returns
- Bitrate, or 0 if unknown.
◆ Channels()
| std::uint8_t StormByte::Multimedia::Property::Audio::Channels |
( |
| ) |
const |
|
noexcept |
Channel count.
- Returns
- Channel count.
◆ Layout()
| ChannelLayout StormByte::Multimedia::Property::Audio::Layout |
( |
| ) |
const |
|
noexcept |
Speaker layout.
- Returns
- Layout.
◆ operator=() [1/2]
| Audio & StormByte::Multimedia::Property::Audio::operator= |
( |
Audio && | other | ) |
|
|
noexcept |
Move assignment.
- Parameters
-
- Returns
- *this.
◆ operator=() [2/2]
| Audio & StormByte::Multimedia::Property::Audio::operator= |
( |
const Audio & | other | ) |
|
Copy assignment.
- Parameters
-
- Returns
- *this.
- Exceptions
-
◆ Profile()
Codec profile name, if present.
- Returns
- Borrowed optional profile, valid while this object is alive.
◆ SampleRate()
| std::uint32_t StormByte::Multimedia::Property::Audio::SampleRate |
( |
| ) |
const |
|
noexcept |
Sample rate in Hz.
- Returns
- Sample rate.
The documentation for this class was generated from the following file:
- lib/public/StormByte/multimedia/property/audio.hxx