Code Monkey home page Code Monkey logo

libldacdec's Introduction

LDAC decoder

this is an early stage, jet functional LDAC audio stream decoder.

Shout-out to @Thealexbarney for the heavy lifting. LDAC is basically a stripped down, streaming only ATRAC9.

Build

$ make

Usage

see ldacdec.c for example usage

ldacdec

takes an LDAC stream and decodes it to WAV

ldacenc

uses Android LDAC encoder library to create LDAC streams from audio

libldacdec's People

Contributors

hegdi 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

Watchers

 avatar  avatar  avatar  avatar

libldacdec's Issues

No license

Please add a license so this can actually be used and worked on.

decode error

I have a piece of test audio here. After encoding and then decoding, the audio is different from the original audio. Part of the decoded audio is noise.
image
test_wav.zip

test.wav

image
test_decode.wav

image

Error when compiling

Hi

I'm trying to compile libldacdec. I started with

git clone https://github.com/hegdi/libldacdec.git
cd libldacdec
git submodule init
git submodule update
make

this is the output:

gcc -MMD -MP -O3 -g -march=native -DVERSION="\"bbba\"" -std=gnu11 -Wall -Wextra -Ilibldac/inc -Ilibldac/src   -c -o ldacdec.o ldacdec.c
ldacdec.c: In function ‘main’:
ldacdec.c:68:9: warning: unused variable ‘blockId’ [-Wunused-variable]
     int blockId = 0;
         ^~~~~~~
gcc -MMD -MP -O3 -g -march=native -DVERSION="\"bbba\"" -std=gnu11 -Wall -Wextra -Ilibldac/inc -Ilibldac/src -fpic   -c -o libldacdec.o libldacdec.c
libldacdec.c: In function ‘ldacNullPacket’:
libldacdec.c:520:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
gcc -MMD -MP -O3 -g -march=native -DVERSION="\"bbba\"" -std=gnu11 -Wall -Wextra -Ilibldac/inc -Ilibldac/src -fpic   -c -o bit_allocation.o bit_allocation.c
gcc -MMD -MP -O3 -g -march=native -DVERSION="\"bbba\"" -std=gnu11 -Wall -Wextra -Ilibldac/inc -Ilibldac/src -fpic   -c -o huffCodes.o huffCodes.c
gcc -MMD -MP -O3 -g -march=native -DVERSION="\"bbba\"" -std=gnu11 -Wall -Wextra -Ilibldac/inc -Ilibldac/src -fpic   -c -o bit_reader.o bit_reader.c
gcc -MMD -MP -O3 -g -march=native -DVERSION="\"bbba\"" -std=gnu11 -Wall -Wextra -Ilibldac/inc -Ilibldac/src -fpic   -c -o utility.o utility.c
gcc -MMD -MP -O3 -g -march=native -DVERSION="\"bbba\"" -std=gnu11 -Wall -Wextra -Ilibldac/inc -Ilibldac/src -fpic   -c -o imdct.o imdct.c
gcc -MMD -MP -O3 -g -march=native -DVERSION="\"bbba\"" -std=gnu11 -Wall -Wextra -Ilibldac/inc -Ilibldac/src -fpic   -c -o spectrum.o spectrum.c
gcc -L. -Wl,-rpath=. -shared -fpic -Wl,-soname,libldacdec.so.1 -o libldacdec.so libldacdec.o bit_allocation.o huffCodes.o bit_reader.o utility.o imdct.o spectrum.o -lm -lldacdec -lsndfile
./libldacdec.so: file not recognized: File truncated
collect2: error: ld returned 1 exit status
Makefile:44: recipe for target 'libldacdec.so' failed
make: *** [libldacdec.so] Error 1

I'm trying to compile on debian stretch. Am I missing something? Any help appreciated! Thanks a lot.

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.