Repository navigation
Test reorganization and bug fixes - #617
Merged
Merged
Conversation
- speechText: no crash on play, independent sources - set3dListenerUp sets the up vector - 3D setters work before the first load - countAudioSource counts waveforms - createVoiceGroup before init fails
- Bus equality is now identity
- sample-accurate seek - partial frames and extended ID3 headers
- audio lost with capped output - missing frames at start - heap over-read in parser - thread-safe FFmpeg loading
- audio lost on small chunks - last AC-3 frame dropped - HE-AAC played without SBR
- COM released on another thread - short streams not decoded
- setvbuf(_IOLBF, 0) is an invalid parameter for the Microsoft C runtime and aborts the process: make stdout unbuffered there - write temporary files to the system temp directory instead of $TMPDIR or /tmp
- count every FFmpeg dlopen() attempt, not only those the test refuses - pass the first binary to llvm-cov as positional, the others with -object
- actions/checkout and actions/upload-artifact v7 - dart analyze instead of the Node 20 analyzer action - libavformat/libavcodec runtime so the Linux decoder test also decodes
- use _strdup on msvc (c4996) - cast the voice count to unsigned int (c4267)
1 of 7 tasks
…t3dDefaultDopplerFactor` 3D settings stored on the sound: a voice copies them when it is created, so they hold from its first sample and need no call on the handle after every play3d. They also apply while the automatic 3D update is disabled.
Each play variant scanned the list of loaded sounds and built a set to find the sound it had been given. The loaded sounds are now kept in a map by hash, so the lookup is constant time and allocates nothing.
The dartdoc of loadFile, loadAsset and loadUrl and the loading and playback skills said it was a no-op. The engine loads a second, independent sound with its own memory and logs a warning.
Rebuilt with the set3dAutoUpdate, get3dAutoUpdate, update3dAudio and set3dDefault* exports.
1 of 7 tasks
Both match the pubspec.lock rule in .gitignore, which made `dart pub publish --dry-run` warn about checked-in ignored files.
alnitak
force-pushed
the
test-reorg
branch
2 times, most recently
from
November 25, 2026 17:34
8467319 to
5ae1351
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A bug-fix release: a new, much larger test suite found many bugs, now fixed.
Added
set3dAutoUpdate,get3dAutoUpdateandupdate3dAudio: with the automatic update disabled the 3D setters only store their values, and oneupdate3dAudio()per frame applies them to all the 3D voices. By default every setter still recomputes all the 3D voices, which is one full pass per call with many moving sources.set3dDefaultAttenuation,set3dDefaultMinMaxDistanceandset3dDefaultDopplerFactor: 3D settings of a sound that every voice started later from it begins with, from its first sample. Theset3dSource*setters act on one voice after it has been created, so they had to be repeated after everyplay3d.Behaviour changes
Busequality is now identity (==/hashCoderemoved), and every bus becomes invalid afterdeinit().play*()arguments, filter parameter fades, ...) throwArgumentErrorfor NaN or infinite values.createMixingBus, the 3D methods andsetBufferIcyMetaIntthrowSoLoudNotInitializedExceptionbeforeinit(), like the rest of the API.SoLoudFilterNotFoundException; an invalid parameter index throwsSoLoudInvalidParameterException.soundHandlethrowsArgumentError(it used to change the global filter).biquadFilteris deprecated: usebiquadResonantFilter.Vst3Host.loadEffectonly supports global and bus slots, and throwsArgumentErrorfor a single sound's slot.SoLoudAudioFormatNotSupportedCppException.webJsFunctionNamework only with the single-threaded WASM build;loadMem/loadUrlof undecodable data throwSoLoudFileLoadFailedException, andaddPullBufferDataStreamthrows on errors.Fixes
speechText()crash onplay();set3dListenerUp; distance attenuation applied twice; inverted Doppler shift; 3D settings lost before the first sound is loaded; NaN audio with min/max distance 0;play()at the voice limit stopping a protected voice.addAudioDataStreamandsetDataIsEndedwork again from worker isolates.TMPDIR.Type of Change