Coder Social home page Coder Social logo

pdmp3's People

Contributors

ermarch avatar technosaurus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pdmp3's Issues

Code optimization and cleanup

Lots of room for improvement.

  1. Floating point constants should be 0.0f (float) vs. 0.0 (double) for faster float ops
  2. slow math ops like sin, cos & pow should be offloaded to lookup tables where possible
    a. ) 1 version with init code to reduce binary size at the cost of startup time
    b. ) another version with static const lookup tables for faster startup at the cost of size
    c. ) some areas just need the math simplified for easier calculation
    multiply by precalculated 1/float is faster than divide by float
    some things need ops rearranged so constants can be merged and separated from variables
  3. unwind some loops into return/initialization (less memcpy lookalikes)
  4. functions should take pointers instead of using globals and some_func(void)

output has audible artefacts

I got the library to work, by reverting to the older commit before the streaming functions were added.

i can decode an MP3 ok, unfortuantely there are noticable 'scratchy' type sounds present in the output. this is in comparison to audacity where the quality is much better.

it would be great if this could be fixed. otherwise. the library is not usable in a professional application, and i would hope others looking for a non-LGPL decoder do not waste a day setting it up as i did.

Converting raw output to .wav with ffmpeg

I dumped the raw output to a file and now I want to convert this file to .wav with ffmpeg:

ffmpeg.exe -f s8 -ar 44000 -ac 2 -i result.txt -ar 44100 -ac 1 out1.wav

The length (in seconds) of the output is valid but instead of sound I can only hear clicking.

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.