Git Product home page Git Product logo

aad's Introduction

C/C++ CI GitHub release (latest by date) GitHub Release Date GitHub repo size GitHub all releases GitHub

AAD

Ayashi Adaptive Differential pulse code modulation encoder / decoder

This is a lossy audio codec inspired by IMA-ADPCM and ITU-T G.726.

Usage

How to build

git clone https://github.com/aikiriao/AAD.git
cd AAD
make

Endode/Decode

Encode

./aad -e INPUT.wav OUTPUT.aad

By default, AAD convert wav to 4-bit/sample ADPCM. Please use -b option to change bit/sample.

Example for 3-bit/sample encode:

./aad -e -b 3 INPUT.wav OUTPUT.aad

Decode

./aad -d INPUT.aad OUTPUT.wav

More applications

Type -h option to display usages for other modes.

./aad -h

License

Copyright (c) 2020 aikiriao Licensed under the WTFPL license.

aad's People

Contributors

aikiriao avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aad's Issues

Makefile?

Hi @aikiriao .

Maybe separate code and docs?:

mkdir src
mv *.c *.h test src

Makefile:

CC = gcc
CFLAGS = -std=c89 -O3 -g3 -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=2 -Wconversion -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition
CPPFLAGS = -DNDEBUG
LDFLAGS = -Wall -Wextra -Wpedantic -O3
LDLIBS = -lm

SRCS = src/aad_encoder.c \
       src/aad_decoder.c \
       src/aad_tables.c \
       src/wav.c \
       src/command_line_parser.c \
       src/main.c
OBJS = $(SRCS:%.c=%.o)
TARGETS = aad

all: $(TARGETS) 

rebuild:
	make clean
	make all

clean:
	rm -rf $(TARGETS) $(OBJS)

$(TARGETS) : $(OBJS)
	$(CC) $(LDFLAGS) $^ $(LDLIBS) -o $@

%.o: %.c
	$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDE) -c $< -o $@

And update head README.md?:

![GitHub release (latest by date)](https://img.shields.io/github/v/release/aikiriao/AAD)
![GitHub Release Date](https://img.shields.io/github/release-date/aikiriao/AAD)
![GitHub repo size](https://img.shields.io/github/repo-size/aikiriao/AAD)
![GitHub all releases](https://img.shields.io/github/downloads/aikiriao/AAD/total)
![GitHub](https://img.shields.io/github/license/aikiriao/AAD)  

See:
GitHub release (latest by date) GitHub Release Date GitHub repo size GitHub all releases GitHub

And update release: add aad-$(ver).tar.xz (without test)?

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.