Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kbinani/wavefile


https://github.com/kbinani/wavefile

Last synced: 8 days ago
JSON representation

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