GithubHelp home page GithubHelp logo

matrix3d / haxe-wavpack-encoder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from soiaf/haxe-wavpack-encoder

0.0 2.0 0.0 57 KB

haXe code to create WavPack audio files

License: Other

Haxe 99.44% HTML 0.56%

haxe-wavpack-encoder's Introduction

////////////////////////////////////////////////////////////////////////////
//                   Haxe Implementation of WavPack Encoder               //
//                   Copyright (c) 2011-2017 Peter McQuillan              //
//                          All Rights Reserved.                          //
//      Distributed under the BSD Software License (see license.txt)      //
////////////////////////////////////////////////////////////////////////////

This package contains a Haxe implementation of the tiny version of the WavPack 
4.40 encoder. It is packaged with a demo command-line program that accepts a
RIFF wav file as input and outputs a WavPack encoded file.
It is possible to generate outputs in the following lanaguages:
neko, c++, c sharp, java
There is also a demo Flash WavPack encoder.
This code has been tested against Haxe 3.4.2

===
To compile the .hx files for use with Neko, use the following command

haxe nekoWavPack.hxml

To run the demo program, use the following command

Usage:   neko wavpack.n [-options] infile.wav outfile.wv [outfile.wvc]
 (default is lossless)

Options: -bn = enable hybrid compression, n = 2.0 to 16.0 bits/sample 
         -c  = create correction file (.wvc) for hybrid mode (=lossless)
         -cc = maximum hybrid compression (hurts lossy quality & decode speed)
         -f  = fast mode (fast, but some compromise in compression ratio)
         -h  = high quality (better compression in all modes, but slower)
         -hh = very high quality (best compression in all modes, but slowest
                              and NOT recommended for portable hardware use)
         -jn = joint-stereo override (0 = left/right, 1 = mid/side)
         -sn = noise shaping override (hybrid only, n = -1.0 to 1.0, 0 = off)

To make the demo Flash file, use the following command

haxe flashtest.hxml

This will produce the file

wavpack_encoder_demo.swf

This demo encodes at 8kHz, lossy. This can be simply modified by changing the values in 
the new method of MicRecorder.hx 

Please direct any questions or comments to [email protected]

haxe-wavpack-encoder's People

Contributors

soiaf avatar

Watchers

 avatar  avatar

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.