Comments (5)
@Ravbug If the input samples are already close to +/- 1, then it's possible that the HRTF will cause the output samples to be slightly outside the [-1, 1] range, but based on the graph, that's not the issue here. Can you try creating the context with validation enabled (see here) and see if that indicates any invalid/NaN inputs?
from steam-audio.
I passed IPL_CONTEXTFLAGS_VALIDATION
, and I didn't get any asserts or additional logs. The out-of-range values are in the ballpark of 10-20 so it doesn't seem like UB to me, but I could be wrong.
from steam-audio.
Output sample values in the 10-20 range are definitely not expected. Do you happen to know what the source and listener positions were when these out-of-range sample values were generated? I want to make sure I'm able to reproduce the conditions under which you're encountering the issue. Thanks!
from steam-audio.
I reproduced it with these positions, in world space:
source pos: (0,0,0)
listener pos: (2.50609, 9.20201, 0)
listener rotation (quaternion xyzw): (-0.395396, 0.586227, 0.395396, 0.586227)
I noticed that the source audio (before SteamAudio sees it) has a couple of values in the [-20,20] range so this could partially be a case of garbage in -> garbage out, however, the buffers that SteamAudio produces have many more out-of-range samples than the input data. These samples also don't always align with the input out-of-range samples. Is this expected?
Here is another Desmos graph with the source buffer and resulting SteamAudio output buffers for this capture: https://www.desmos.com/calculator/14biausk1g
from steam-audio.
The all seems reasonable. Input seems to be in the range of [-30 to 20] and output from Steam Audio is in similar range. Samples don't align because HRTF is basically and FIR filter which adds delay and does a weights sum of various samples to generate output at a given sample.
from steam-audio.
Related Issues (20)
- [UE 5.1] The following modules are missing or built with a different engine version HOT 10
- Curve driven reflection attenuation incorrect for logarithmic fall off HOT 1
- SteamAudioSource debug problem
- Minimum distance in inverse distance attenuation and reflection produces NaN or weird output buffers HOT 1
- Crashing iplSimulatorRunReflections with baking HOT 16
- Can SteamAudio plugin be used on visionOS? HOT 2
- Segfault in phonon_test HOT 3
- Script need to handle dependency folder name "lib64" / or rename to "lib"
- adding djfft as another fft implementation HOT 1
- Redundant CMake re-configures automatically triggering HOT 1
- Unreal Engine 5.4 fail to build HOT 1
- ArrayMath crashes on x86_64 macOS and Linux during HRTF creation HOT 2
- Steam audio spatializer does not work correctly. FMOD+UNITY HOT 12
- UE 5.4.3 Startup crash
- UE 5.4 - reverb at the listener position - crash HOT 3
- [C API] Compilation issues with flatbuffers - with solutions HOT 1
- How do I play sound at a new position immediately? HOT 12
- [ Unity / SteamAudioSource.cs ] System.InvalidOperationException: Handle is not initialized. HOT 1
- [Request] Include a top-level CMakeLists.txt file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from steam-audio.