URY playd
C++ minimalist audio player
sample_formats.cpp File Reference

Implementation of sample format tables. More...

#include <array>
#include <cstddef>
#include "sample_formats.hpp"
+ Include dependency graph for sample_formats.cpp:

Go to the source code of this file.

Variables

const std::array< std::size_t, SAMPLE_FORMAT_COUNTSAMPLE_FORMAT_BPS
 Map from SampleFormats to bytes-per-mono-sample. More...
 

Detailed Description

Implementation of sample format tables.

See also
audio/sample_formats.hpp

Definition in file sample_formats.cpp.

Variable Documentation

§ SAMPLE_FORMAT_BPS

const std::array<std::size_t, SAMPLE_FORMAT_COUNT> SAMPLE_FORMAT_BPS
Initial value:
{{
1,
1,
2,
4,
4
}}

Map from SampleFormats to bytes-per-mono-sample.

Definition at line 15 of file sample_formats.cpp.

Referenced by AudioSource::BytesPerSample().