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

Function BytesFromUserFmt

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

Source from the content-addressed store, hash-verified

239
240
241ALuint BytesFromUserFmt(UserFmtType type)
242{
243 switch(type)
244 {
245 case UserFmtUByte: return sizeof(ALubyte);
246 case UserFmtShort: return sizeof(ALshort);
247 case UserFmtFloat: return sizeof(ALfloat);
248 case UserFmtDouble: return sizeof(ALdouble);
249 case UserFmtMulaw: return sizeof(ALubyte);
250 case UserFmtAlaw: return sizeof(ALubyte);
251 case UserFmtIMA4: break; /* not handled here */
252 case UserFmtMSADPCM: break; /* not handled here */
253 }
254 return 0;
255}
256ALuint ChannelsFromUserFmt(UserFmtChannels chans)
257{
258 switch(chans)

Callers 1

FrameSizeFromUserFmtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected