added WAV file writer

This commit is contained in:
Ahmet Inan 2018-03-10 20:10:54 +01:00
commit 52b16be64a
3 changed files with 120 additions and 0 deletions

28
pcm.hh Normal file
View file

@ -0,0 +1,28 @@
/*
Interface for reading and writing PCM data
Copyright 2018 Ahmet Inan <inan@aicodix.de>
*/
#ifndef PCM_HH
#define PCM_HH
namespace DSP {
template <typename TYPE>
struct WritePCM
{
virtual void write(TYPE *, int, int) = 0;
virtual void silence(int) = 0;
};
template <typename TYPE>
struct ReadPCM
{
virtual void read(TYPE *, int, int) = 0;
};
}
#endif