You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Instead of detecting the channel count from the audio file, or as an explicit import option, the spatialized flag is used to set the channel count to 1 if true, 2 if false.
To Reproduce
Steps to reproduce the behavior:
Import a mono wav file without the "spatialized" flag set.
Try to play from an Audio emitter component
It will give you an exception that the channel count is greater than 1
Expected behavior
A mono file will be imported with a channel count of 1.
Screenshots
If applicable, add screenshots to help explain your problem (use GitHub drag & drop)
Log and callstacks
This is caused by SoundAssetCompiler.DoCommandOverride, line 54.
The text was updated successfully, but these errors were encountered:
Reading into this a bit, ffmpeg does not seem to be recommended for getting this kind of info - instead, ffprobe is recommended.
It's usually bundled in downloads of ffmpeg, but it isn't included with Stride currently. So that path for solving the bug would be to add ffprobe as a dependency, and use it for channel info (also, we could use it for sample rate too)
adrsch
changed the title
AssetCompiler uses spatialized flag for channel count
[Assets] AssetCompiler uses spatialized flag for channel count
Oct 29, 2023
Version: 4.1.0.1
Describe the bug
Instead of detecting the channel count from the audio file, or as an explicit import option, the spatialized flag is used to set the channel count to 1 if true, 2 if false.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A mono file will be imported with a channel count of 1.
Screenshots
If applicable, add screenshots to help explain your problem (use GitHub drag & drop)
Log and callstacks
This is caused by SoundAssetCompiler.DoCommandOverride, line 54.
The text was updated successfully, but these errors were encountered: