Giter VIP home page Giter VIP logo

Comments (1)

ashtoncowie avatar ashtoncowie commented on August 16, 2024

I know this issue was opened 9 months ago but I think I've solved this.

  • Running git grep -F samplerate in repo root (notice the lowercase "r") returns lots of results of python functions that read and parse the sample rate.
    • Most important of these is hifiberrydsp/parser/xmlprofile.py:ATTRIBUTE_SAMPLERATE = "samplerate"
      • i.e. the actual XML attribute that gets read is indeed "samplerate" with a lowercase "r".
  • git grep -F sampleRate with a capital "R" only returns three sample XML files, and nothing in the code itself!
    • It's worth noting that dsptoolkit get-samplerate returns 48000 as a default value when it can't parse the metadata for whatever reason.

So this boils down to a typo in these sample XML files here, not to mention the profiles in hifiberry-os that most users have installed by default.

Correcting this typo in my profile (I'm also using dsp-addon-96-13) and installing it fixed it for me.

Once I have a minute I'll open PRs for this.

from hifiberry-dsp.

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.