Open Leadwerks opened 2 years ago
By default a release build should only output error messages, and if you're getting a lot of them it indicates a problem somewhere. Non-release builds should output warnings and errors, which also shouldn't be much more. What output are you getting?
It's filling up our the whole console every time sound is used. My users generally do not care about the details of the sound system, as long as it works:
[ALSOFT] (II) Initializing library v1.22.2-unknown UNKNOWN
[ALSOFT] (II) Supported backends: wasapi, dsound, winmm, null, wave
[ALSOFT] (II) Loading config xxxxxxxxxxxxxxxxxxxxxxxxxx\alsoft.ini...
[ALSOFT] (II) Got binary: xxxxxxxxxxxxxxxxxxxxxxxxxx
[ALSOFT] (II) Loading config xxxxxxxxxxxxxxxxxxxxxxxxxx\alsoft.ini...
[ALSOFT] (II) Key disable-cpu-exts not found
[ALSOFT] (II) Vendor ID: ""
[ALSOFT] (II) Name: "Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz"
[ALSOFT] (II) Extensions: +SSE +SSE2 +SSE3 +SSE4.1
[ALSOFT] (II) Key rt-prio not found
[ALSOFT] (II) Key rt-time-limit not found
[ALSOFT] (II) Key game_compat/reverse-x not found
[ALSOFT] (II) Key game_compat/reverse-y not found
[ALSOFT] (II) Key game_compat/reverse-z not found
[ALSOFT] (II) Key game_compat/nfc-scale not found
[ALSOFT] (II) Key resampler not found
[ALSOFT] (II) Key uhj/decode-filter not found
[ALSOFT] (II) Key uhj/filter not found
[ALSOFT] (II) Key uhj/encode-filter not found
[ALSOFT] (II) Key trap-al-error not found
[ALSOFT] (II) Key trap-alc-error not found
[ALSOFT] (II) Key reverb/boost not found
[ALSOFT] (II) Key drivers not found
[ALSOFT] (II) Initialized backend "wasapi"
[ALSOFT] (II) Added "wasapi" for playback
[ALSOFT] (II) Added "wasapi" for capture
[ALSOFT] (II) Key excludefx not found
[ALSOFT] (II) Key default-reverb not found
[ALSOFT] (II) Key eax/enable not found
[ALSOFT] (II) Starting message thread
[ALSOFT] (II) Starting message loop
[ALSOFT] (II) Got message "Open Device" (0x0000, this=0000019128AEEEC0, param=0000000000000000)
[ALSOFT] (II) Key frequency not found
[ALSOFT] (II) Key sources not found
[ALSOFT] (II) Key slots not found
[ALSOFT] (II) Key sends not found
[ALSOFT] (II) Created device 00000191292BE9E0, "OpenAL Soft on Speakers/Headphones (Realtek(R) Audio)"
[ALSOFT] (II) Key sample-type not found
[ALSOFT] (II) Key channels not found
[ALSOFT] (II) Key ambi-format not found
[ALSOFT] (II) Key period_size not found
[ALSOFT] (II) Key periods not found
[ALSOFT] (II) Key hrtf not found
[ALSOFT] (II) Pre-reset: Stereo, Float32, 48000hz, 960 / 2880 buffer
[ALSOFT] (II) Got message "Reset Device" (0x0001, this=0000019128AEEEC0, param=0000000000000000)
[ALSOFT] (II) Device mix format:
FormatTag = 0xfffe
Channels = 8
SamplesPerSec = 48000
AvgBytesPerSec = 1536000
BlockAlign = 32
BitsPerSample = 32
Size = 22
Samples = 32
ChannelMask = 0x63f
SubFormat = {00000003-0000-0010-8000-00aa00389b71}
[ALSOFT] (II) Requesting playback format:
FormatTag = 0xfffe
Channels = 8
SamplesPerSec = 48000
AvgBytesPerSec = 1536000
BlockAlign = 32
BitsPerSample = 32
Size = 22
Samples = 32
ChannelMask = 0x63f
SubFormat = {00000003-0000-0010-8000-00aa00389b71}
[ALSOFT] (II) Post-reset: 7.1 Surround, Float32, 48000hz, 960 / 2880 buffer
[ALSOFT] (II) Key stereo-mode not found
[ALSOFT] (II) Key stereo-encoding not found
[ALSOFT] (II) Key decoder/surround71 not found
[ALSOFT] (II) Key front-stablizer not found
[ALSOFT] (II) Key decoder/hq-mode not found
[ALSOFT] (II) Channel config, Main: 5, Real: 8
[ALSOFT] (II) Allocating 13 channels, 53248 bytes
[ALSOFT] (II) Enabling dual-band second-order ambisonic decoder
[ALSOFT] (II) Max sources: 256 (255 + 1), effect slots: 64, sends: 4
[ALSOFT] (II) Key dither not found
[ALSOFT] (II) Key dither-depth not found
[ALSOFT] (II) Dithering disabled
[ALSOFT] (II) Key output-limiter not found
[ALSOFT] (II) Output limiter disabled
[ALSOFT] (II) Fixed device latency: 0ns
[ALSOFT] (II) Got message "Start Device" (0x0002, this=0000019128AEEEC0, param=0000000000000000)
[ALSOFT] (II) Post-start: 7.1 Surround, Float32, 48000hz, 960 / 2880 buffer
[ALSOFT] (II) Increasing allocated voices to 256
[ALSOFT] (II) Key volume-adjust not found
[ALSOFT] (II) Created context 00000191292FE8D0
[ALSOFT] (II) Increasing allocated voice properties to 32
[ALSOFT] (II) Got message "Stop Device" (0x0003, this=0000019128AEEEC0, param=0000000000000000)
[ALSOFT] (II) Freeing context 00000191292FE8D0
[ALSOFT] (II) Freed 2 context property objects
[ALSOFT] (II) Freed 0 AuxiliaryEffectSlot property objects
[ALSOFT] (II) Freeing device 00000191292BE9E0
[ALSOFT] (II) Got message "Close Device" (0x0004, this=0000019128AEEEC0, param=0000000000000000)
[ALSOFT] (II) Message loop finished
It looks like the log level can be changed in logging.cpp:
void al_print(LogLevel level, FILE *logfile, const char *fmt, ...)
{
if (level != LogLevel::Error) return;
Unless you've made changes to the source, or have the ALSOFT_LOGLEVEL
environment variable set, the default log level for release builds is errors only. It shouldn't show those messages if you didn't ask for them.
The output messages in OpenALsoft are really excessive. How can I disable this?