Giter Club home page Giter Club logo

Comments (4)

lakulish avatar lakulish commented on August 12, 2024

@grrrwaaa Do you encounter this issue when using IPL_HRTFINTERPOLATION_NEAREST? At first glance, things seem to be configured correctly in your code.

from steam-audio.

grrrwaaa avatar grrrwaaa commented on August 12, 2024

Hi there, thanks for looking at this.

Using IPL_HRTFINTERPOLATION_NEAREST doesn't make any difference as far as I can tell.

I've taken some screenshots of the waveforms I'm seeing, uploaded here:

https://www.dropbox.com/sh/023oy5r1a2swy1m/AADgDfkgN73X1QASZ1ZgqALea?dl=0

This was captured by panning a source signal that is a 2000Hz sinewave, panning around the listener a little faster than once per second. The sampling rate is 44.1kHz, IPL_HRTFINTERPOLATION_BILINEAR is enabled. Some are taken with a framesize of 64, some with a framesize of 1024 (indicated in the filename). OSX 64-bit.

In the most zoomed out picture there's very clearly linear stepping of the position, not interpolation. These artifacts seem to occur about every 2048 samples (regardless of my framesize -- I'm speculating that this is a function of the HRTF size so there's nothing I can do about it?) Still, in the most zoomed pictures at 64 framesize there's a very abrupt cut in both amplitude and phase, causing the crackle. In the zoomed in pictures at 1024 framesize, this manifests instead as a wobble over around 200ish samples -- presumably a crossfade between signals at different phases.

It's clear that there's going to be some kind of approximation for motion, since the direction vector is only updated as a step signal, at most once per framesize. But is there any way I can reduce the crackle? If the HRTFs are only updated every 2048 samples (which seems to be the case), then perhaps I can run two HRTFs in parallel and crossfade their outputs (perhaps interlaced, so that I can achieve a maximum rate of motion frequency of samplerate/1024)?

Graham

from steam-audio.

grrrwaaa avatar grrrwaaa commented on August 12, 2024

I've updated to the beta 10, and I still hear the zipper noise. It seems like the interpolation is now working correctly (with interpolation disabled I hear stepping as before). However even with interpolation enabled I am still seeing abrupt cuts with a frame size less than 2048 samples, leading to crackle. The lower the frame size, the more the crackle.

Is this library not intended to be used with frame sizes other than 2048 samples?

from steam-audio.

github-actions avatar github-actions commented on August 12, 2024

This issue has been automatically marked stale, and will automatically be closed in 30 days if no activity occurs.

from steam-audio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.