mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
added WAV file writer
This commit is contained in:
parent
b08665e8d9
commit
52b16be64a
3 changed files with 120 additions and 0 deletions
28
pcm.hh
Normal file
28
pcm.hh
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue