Using this library, you can quickly write code to create simple wave file.
With this, you can write code to create audio files quickly.:dash: And you can create audio files without struggle with binary files!:ok_hand:
Even if you are not good at file operations, you can write code intuitively!:smile:
This library was originally developed for C#, but now, it is developed for C++. This project has been reborn for C++!:clap: It means this library doesn't depend on .NET framework!:relaxed: If you want to use this on C#, you can download C# edition in the release page but it maybe not latest version.
This project depends on nothing (C++ edition)
This project depends on .NET framework or .NET Core (C# edtion)
I will show an example about this. A detailed explanation about this can be seen on the site(Sorry, it's preparing now).
Following code with WaveFileManager works that create wave file.
//#include "wavefile_manager.h"
//Declare variables
MusicProperty musicProperty;
WAVEFORMATEX format;
unsigned char data[44100 * 6];
//Generate sound data (C4 - 3 second)
generateSoundMonaural16bits(data, 44100 * 6, C4, 44100, 15000);
//Generate contents of WaveFile
generateWAVEFORMATEX(&format, MONAURAL_16BITS);
generateMusicProperty(&musicProperty, &format, MONAURAL_16BITS, data, 44100 * 6);
createFile("C:\\capra.wav", &musicProperty);
Following code with WaveFileManager works that create wave file.(This code behaves just like above code.)
//using WFM;
//Declare variables
MusicProperty musicProperty = new MusicProperty();
WAVEFORMATEX format = new WAVEFORMATEX();
byte[] itibyou = new byte[44100 * 6];
//Generate sound data (C4 - 3 second)
WaveFileManager.GenerateSoundMonaural16bits(itibyou, Hertz.C4, 44100, 15000);
//Generate contents of WaveFile
WaveFileManager.GenerateWAVEFORMATEX(ref format, EDataType.MONAURAL_16BITS);
WaveFileManager.GenerateMusicProperty(ref musicProperty, format, EDataType.MONAURAL_16BITS,itibyou);
//Create WaveFile
WaveFileManager.CreateFile("C:\\capra.wav", musicProperty);
- Go to ReleasePage and download the files. (or go to GitHomeand download the zipfile)
- Include the files to your project.
Only this.
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request