aboutsummaryrefslogtreecommitdiffstats
path: root/al/buffer.cpp
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2020-08-24 17:59:07 -0700
committerChris Robinson <chris.kcat@gmail.com>2020-08-24 17:59:07 -0700
commit9d61484e4bc0b2691b714d758391b3c3ecfd7890 (patch)
treee122607532bbbd692dccf01fa6da55e928da54bf /al/buffer.cpp
parent73ab9d46c88f034a32a6fb174e98fd23dec1ff98 (diff)
Move storable buffer format info to a separate source
Diffstat (limited to 'al/buffer.cpp')
-rw-r--r--al/buffer.cpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp
index af1ad638..b795964a 100644
--- a/al/buffer.cpp
+++ b/al/buffer.cpp
@@ -1577,37 +1577,6 @@ START_API_FUNC
END_API_FUNC
-ALuint BytesFromFmt(FmtType type) noexcept
-{
- switch(type)
- {
- case FmtUByte: return sizeof(uint8_t);
- case FmtShort: return sizeof(int16_t);
- case FmtFloat: return sizeof(float);
- case FmtDouble: return sizeof(double);
- case FmtMulaw: return sizeof(uint8_t);
- case FmtAlaw: return sizeof(uint8_t);
- }
- return 0;
-}
-ALuint ChannelsFromFmt(FmtChannels chans, ALuint ambiorder) noexcept
-{
- switch(chans)
- {
- case FmtMono: return 1;
- case FmtStereo: return 2;
- case FmtRear: return 2;
- case FmtQuad: return 4;
- case FmtX51: return 6;
- case FmtX61: return 7;
- case FmtX71: return 8;
- case FmtBFormat2D: return (ambiorder*2) + 1;
- case FmtBFormat3D: return (ambiorder+1) * (ambiorder+1);
- }
- return 0;
-}
-
-
BufferSubList::~BufferSubList()
{
uint64_t usemask{~FreeMask};