move more wavetable loading logic
now it's safer
This commit is contained in:
parent
186e491c59
commit
724b1cd1a8
6 changed files with 41 additions and 19 deletions
|
|
@ -1,13 +1,14 @@
|
|||
#ifndef _WAVETABLE_H
|
||||
#define _WAVETABLE_H
|
||||
#include "safeWriter.h"
|
||||
#include "dataErrors.h"
|
||||
|
||||
struct DivWavetable {
|
||||
int len, min, max;
|
||||
int data[256];
|
||||
|
||||
void putWaveData(SafeWriter* w);
|
||||
void readWaveData(SafeReader& reader, short version);
|
||||
DivDataErrors readWaveData(SafeReader& reader, short version);
|
||||
bool save(const char* path);
|
||||
DivWavetable():
|
||||
len(32),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue