stride3d / stride3d/stride

AssetCompiler throws for ogg file with with unusual sampling rate

Open
#794 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area-Asset area-Audio bug priority-Medium work-estimate-S
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:

  1. Take an audio file with sample rate higher than 96kHz (192k_sample.zip).
  2. Add it as an asset to a project
  3. Set it as a root asset and try building
  4. Observe exception in log

Expected behavior
Log error instead of exception or support higher sampling rates (native library dependent).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.