Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kbinani/wavefile
https://github.com/kbinani/wavefile
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kbinani/wavefile
- Owner: kbinani
- Created: 2014-11-20T02:19:42.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-04T10:18:12.000Z (over 9 years ago)
- Last Synced: 2023-03-22T14:19:43.010Z (over 1 year ago)
- Language: C++
- Size: 418 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WaveFile [![Build Status](https://travis-ci.org/kbinani/WaveFile.svg)](https://travis-ci.org/kbinani/WaveFile)
Lightweight *.wav file IO library written in C++.
# Requirements
Modern C++ compiler.
# Example
```
#include "wavefile/writer.hpp"int main()
{
// default format, 2ch 44100Hz 16bps
WaveFile::Format format;WaveFile::Writer writer("out.wav", format);
std::vector wav(1024);// fill wav data into `wav`.
WaveFile::Buffer buffer(std::move(wav), format.sample_rate());
writer.write(buffer);
}
```# License
MIT License