MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / printALInfo

Method printALInfo

Engine/source/sfx/openal/sfxALDevice.cpp:30–63  ·  view source on GitHub ↗

---------------------------------------------------------------------------- STATIC OPENAL FUNCTIONS ----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

28// STATIC OPENAL FUNCTIONS
29//----------------------------------------------------------------------------
30void SFXALDevice::printALInfo(ALCdevice* device)
31{
32 ALCint major, minor;
33 if (device)
34 {
35 const ALCchar* devname = NULL;
36 Con::printBlankLine();
37
38 if (mOpenAL.alcIsExtensionPresent(device, "ALC_ENUMERATE_ALL_EXT") != AL_FALSE)
39 {
40 devname = mOpenAL.alcGetString(device, ALC_ALL_DEVICES_SPECIFIER);
41 }
42 else
43 {
44 devname = mOpenAL.alcGetString(device, ALC_DEVICE_SPECIFIER);
45 }
46
47 Con::printf("| Device info for: %s ", devname);
48 }
49
50 mOpenAL.alcGetIntegerv(device, ALC_MAJOR_VERSION, 1, &major);
51 mOpenAL.alcGetIntegerv(device, ALC_MINOR_VERSION, 1, &minor);
52 Con::printf("| OpenAL Version: %d.%d", major, minor);
53
54 if (device)
55 {
56 Con::printf("%s", mOpenAL.alcGetString(device, ALC_EXTENSIONS));
57
58 U32 err = mOpenAL.alcGetError(device);
59 if (err != ALC_NO_ERROR)
60 Con::errorf("SFXALDevice - Error Retrieving ALC Extensions: %s", mOpenAL.alcGetString(device, err));
61 }
62
63}
64
65S32 SFXALDevice::getMaxSources()
66{

Callers

nothing calls this directly

Calls 3

printBlankLineFunction · 0.85
printfFunction · 0.85
errorfFunction · 0.50

Tested by

no test coverage detected