AssetCompiler throws for ogg file with with unusual sampling rate
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Release Type: GitHub
Version: master
Platform(s): Any
Describe the bug
Processing a Vorbis ogg file with a sampling rate above 96kHz causes an exception to be thrown: https://github.com/stride3d/stride/blob/f40685359d7d4796bee9eac6a6c72ccac8a65da9/sources/engine/Stride.Audio/Native/Celt.cs#L43
To Reproduce
Steps to reproduce the behavior:
- Take an audio file with sample rate higher than 96kHz (192k_sample.zip).
- Add it as an asset to a project
- Set it as a root asset and try building
- Observe exception in log
Expected behavior
Log error instead of exception or support higher sampling rates (native library dependent).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Celt.cs line 43 and reproduce the failure using the provided 192k_sample.zip in a Stride project, following the listed asset-build steps. Compare the observed exception with the expected handling and determine whether the result should be an error log or support for higher sampling rates, then verify the behavior through an asset build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- audio-video-rtc, game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100