MCPcopy Create free account
hub / github.com/crownengine/crown / BytesFromFmt

Function BytesFromFmt

3rdparty/openal/al/buffer.cpp:1345–1360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1343 }
1344}
1345END_API_FUNC
1346
1347
1348ALuint BytesFromFmt(FmtType type)
1349{
1350 switch(type)
1351 {
1352 case FmtUByte: return sizeof(ALubyte);
1353 case FmtShort: return sizeof(ALshort);
1354 case FmtFloat: return sizeof(ALfloat);
1355 case FmtDouble: return sizeof(ALdouble);
1356 case FmtMulaw: return sizeof(ALubyte);
1357 case FmtAlaw: return sizeof(ALubyte);
1358 }
1359 return 0;
1360}
1361ALuint ChannelsFromFmt(FmtChannels chans)
1362{
1363 switch(chans)

Callers 5

source.cppFile · 0.85
LoadDataFunction · 0.85
buffer.cppFile · 0.85
switchFunction · 0.85
FrameSizeFromFmtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected