class Format
Defined at line 20 of file ../../src/media/audio/lib/format/format.h
Format represents the format of audio data, and primarily includes a SampleFormat,
a channel count, and a sample rate measured in frames/second.
Protected Members
AudioStreamType stream_type_
TimelineRate frames_per_ns_
TimelineRate frame_to_media_ratio_
uint32_t bytes_per_frame_
uint32_t valid_bits_per_channel_
Public Methods
void Format (const Format & )
Defined at line 28 of file ../../src/media/audio/lib/format/format.h
Format & operator= (const Format & )
Defined at line 29 of file ../../src/media/audio/lib/format/format.h
bool operator!= (const Format & other)
Defined at line 32 of file ../../src/media/audio/lib/format/format.h
const fuchsia::media::AudioStreamType & stream_type ()
Defined at line 34 of file ../../src/media/audio/lib/format/format.h
int32_t channels ()
Defined at line 35 of file ../../src/media/audio/lib/format/format.h
int32_t frames_per_second ()
Defined at line 36 of file ../../src/media/audio/lib/format/format.h
fuchsia::media::AudioSampleFormat sample_format ()
Defined at line 37 of file ../../src/media/audio/lib/format/format.h
const TimelineRate & frames_per_ns ()
Defined at line 39 of file ../../src/media/audio/lib/format/format.h
const TimelineRate & frame_to_media_ratio ()
Defined at line 40 of file ../../src/media/audio/lib/format/format.h
uint32_t bytes_per_frame ()
Defined at line 41 of file ../../src/media/audio/lib/format/format.h
uint32_t bytes_per_sample ()
Defined at line 42 of file ../../src/media/audio/lib/format/format.h
uint32_t valid_bits_per_channel ()
Defined at line 43 of file ../../src/media/audio/lib/format/format.h
fpromise::result<Format> Create (fuchsia::media::AudioStreamType stream_type)
Defined at line 49 of file ../../src/media/audio/lib/format/format.cc
template <fuchsia::media::AudioSampleFormat SampleFormat>
fpromise::result<TypedFormat<SampleFormat>> Create (int32_t channels, int32_t frames_per_second)
Defined at line 57 of file ../../src/media/audio/lib/format/format.cc
bool operator== (const Format & other)
Defined at line 104 of file ../../src/media/audio/lib/format/format.cc
Protected Methods
void Format (fuchsia::media::AudioStreamType stream_type)
Defined at line 70 of file ../../src/media/audio/lib/format/format.cc