Giter Club home page Giter Club logo

traveling-wav's Introduction

Traveling Wav (A library to load or create wav file)

Build Status
License

Using this library, you can quickly write code to create or read simple wav file(*.wav).

Description

This library enables you to read, write or create wav file without confusing binary files! 👌 Even if you are not good at file operations, you can write code intuitively.
Also this can be used for managing RIFF file such as *.wav, *.avi, *.ani. It means that you can use this not only for wav file but for other files.

Usage

Load file

// #include<tvgw/fileload>

// Allocate memory for result.
auto riff_file = new TVGW_RIFF_File;

// Call tvgw_LoadFile function.
int result = tvgw_LoadFile("somemusic.wav", &riff_file);

if (result == 0)
{
    // Load file successfully.
}

Write file

// #include<tvgw/filewrite>

// Create format chunk.
auto format_chunk = new TVGW_File_Chunk;
tvgw_ConvertToFormatChunk(&format_chunk, &fmt);

// Create data chunk.
auto music_data_chunk = new TVGW_File_Chunk;
tvgw_ConvertToDataChunk(&music_data_chunk, dataSize, data);

// Create RIFF format data.
auto chunks = new TVGW_File_Chunk[2];
chunks[0] = format_chunk;
chunks[1] = music_data_chunk;
auto filedata = * tvgw_ConvertToWav(2, chunks);

// Call tvgw_WriteFile function
int result = tvgw_WriteFile("somemusic.wav", &filedata);

if (result == 0)
{
    // Load file successfully.
}

Install

  1. Go to Release Page and download the files. (or go to GitHub and download source codes)
  2. Include the files to your project.

Only this.

Contribution

We always welcome you to join us.
And, when you want to contribute this, you can do so by doing following action.

  1. Fork it
  2. Create your feature branch (git checkout -b feature/my-change)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin feature/my-change)
  5. Create new Pull Request

Licence

MIT

Author

capra314cabra

traveling-wav's People

Contributors

caphosra avatar

Watchers

 avatar

traveling-wav's Issues

C++ version is low in Azure pipelines Ubuntu

Scanning dependencies of target tvgw_static
[ 10%] Building CXX object CMakeFiles/tvgw_static.dir/script/cpp/src/tvgw_converter.cpp.o
/home/vsts/work/1/s/script/cpp/src/tvgw_converter.cpp: In function ‘TVGW_RIFF_File* tvgw_ConvertToRIFF(unsigned int, unsigned int, TVGW_File_Chunk**)’:
/home/vsts/work/1/s/script/cpp/src/tvgw_converter.cpp:25:10: error: ‘riff_contents’ does not name a type
     auto riff_contents = new TVGW_RIFF_File;
          ^
/home/vsts/work/1/s/script/cpp/src/tvgw_converter.cpp:34:5: error: ‘riff_contents’ was not declared in this scope
     riff_contents->RIFF = TVGW_RIFF;
     ^
CMakeFiles/tvgw_static.dir/build.make:62: recipe for target 'CMakeFiles/tvgw_static.dir/script/cpp/src/tvgw_converter.cpp.o' failed
make[2]: *** [CMakeFiles/tvgw_static.dir/script/cpp/src/tvgw_converter.cpp.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/tvgw_static.dir/all' failed
make[1]: *** [CMakeFiles/tvgw_static.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I think this error is caused because the reserved word, "auto" cannot be used in Ubuntu by C++ version.

The version of CMake in Azure Dev Ops is 3.12.4

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  CMake 3.14.0 or higher is required.  You are running version 3.12.4

(In Azure Dev Ops)

I wanna use CMake 3.14.0 because it can use the "Visual Studio 16 2019" generator but the version is too low to use it.

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.