Skip to content

This is an audio resamplerate program based on Secret Rabbit Code and iniparser.

License

Notifications You must be signed in to change notification settings

AnSwErYWJ/AudioResamplerate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AudioResamplerate

Open Source Love stable

Introduction

This is an audio resamplerate program for Linux,support PCM and WAV audio(mone or stereo),bits of each sample is 16 default.

Component

  • log : print verbose/info/debug/warning/error message.
  • iniparser : configure the parameters by config.ini dynamically.
  • resamplerate : resamplerate your parogram.

Installation

$ git clone [email protected]:AnSwErYWJ/AudioResamplerate.git

Usage

  1. If you modify the file of three components, compile three dynamic library of components :

    $ make iniparser
    $ make resamplerate
    
  2. If you modify the source/resamplerate.c include/resamplerate, compile bin :

    $ make
    
  3. Modify the config.ini to configure the parameters, input support PCM or WAV audio files, and output only support PCM audio files, such as :

    [audio]
    channels = 1;
    input_sample_rate = 16000;
    output_sample_rate = 48000;
    
    [path]
    input = ./audio/S16bit-LE-16kHz-Mono.pcm;
    output = ./audio/out.pcm;
    
    [type]
    input = wav;
    output = null;
    
  4. Then,run the program with :

    $ export LD_LIBRARY_PATH=./lib:$LD_LIBRARY_PATH
    $ ./resamplerate
    

Environment

  • Linux
  • POSIX C
  • Bash Shell

Todo

  • Use TOML replace iniparser.

Reference

About me

forthebadge

Copyright and License

BSD 2-Clause License

Copyright (c) 2016-2018, AnSwErYWJ(Weijie Yuan),[email protected] All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

This is an audio resamplerate program based on Secret Rabbit Code and iniparser.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages