Skip to content

Commit 71c489e

Browse files
committed
Complie error with STK_USE_FILES
1 parent 8bc1def commit 71c489e

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

src/ArdConfig.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
by Phil Schatzmann
88
*/
99

10-
#ifndef USE_FILES
10+
//#define STK_USE_FILES
11+
12+
#ifndef STK_USE_FILES
1113
#define __RAW_ARRAYS__ // raw files as compilable c arrays
1214
#endif
1315

src/Granulate.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Granulate :: Granulate( unsigned int nVoices, std::string fileName, bool typeRaw
4141
this->setVoices( nVoices );
4242
}
4343

44+
#ifdef __RAW_ARRAYS__
45+
4446
Granulate :: Granulate( unsigned int nVoices, MemoryFS &memoryFile)
4547
{
4648
this->setGrainParameters(); // use default values
@@ -58,6 +60,8 @@ void Granulate :: openMemory(MemoryFS &memoryFile) {
5860
this->reset();
5961
}
6062

63+
#endif
64+
6165
Granulate :: ~Granulate( void )
6266
{
6367
}

src/Granulate.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,16 @@ class Granulate: public Generator
3535
//! Constructor taking input audio file and number of voices arguments.
3636
Granulate( unsigned int nVoices, std::string fileName, bool typeRaw = false );
3737

38+
#ifdef __RAW_ARRAYS__
39+
Granulate( unsigned int nVoices, MemoryFS &memoryFile);
40+
#endif
41+
3842
//! Class destructor.
3943
~Granulate( void );
4044

41-
Granulate( unsigned int nVoices, MemoryFS &memoryFile);
45+
#ifdef __RAW_ARRAYS__
4246
void openMemory(MemoryFS &memoryFile);
43-
47+
#endif
4448
//! Load a monophonic soundfile to be "granulated".
4549
/*!
4650
An StkError will be thrown if the file is not found, its format

0 commit comments

Comments
 (0)