📅  最后修改于: 2023-12-03 14:59:25.219000             🧑  作者: Mango
Audio YH is an audio processing library written in C++ that provides a range of audio effects and utilities. It is open source and can be used for both commercial and non-commercial projects.
Some of the features of Audio YH are:
Audio YH can be installed by cloning the repository from GitHub and building it using CMake. Here are the steps:
Clone the repository using the following command:
git clone https://github.com/audioyh/audioyh.git
Navigate to the cloned directory using the following command:
cd audioyh
Create a build directory and navigate to it:
mkdir build && cd build
Run CMake to generate the build files:
cmake ..
Build the library:
cmake --build .
To use the library in your project, include the audioyh
header files and link against the audioyh
library.
Here's an example of how to use Audio YH to load an audio file, apply an echo effect, and save the resulting audio:
#include <audioyh/audioyh.h>
int main()
{
// Load the input audio
audioyh::AudioFile<float> audio("input.wav");
// Apply an echo effect
audio = audioyh::echo(audio, 0.5f, 0.5f);
// Save the resulting audio
audio.save("output.wav");
return 0;
}
The documentation for Audio YH can be found on the project's GitHub page.
Audio YH is a powerful audio processing library that can be easily integrated into your projects. Its range of features and ease of use make it a great choice for anyone looking to work with audio in C++.