Skip to content

Commit 5084357

Browse files
author
Martin Klang
committed
removed redundant AudioBuffer* createMemoryBuffer()
1 parent 31ddaf3 commit 5084357

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

Source/PatchProcessor.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,6 @@ void PatchProcessor::setPatch(Patch* p, const char* n){
3838
name = n;
3939
}
4040

41-
AudioBuffer* PatchProcessor::createMemoryBuffer(int channels, int size){
42-
MemoryBuffer* buf = new ManagedMemoryBuffer(channels, size);
43-
if(buf == NULL)
44-
return NULL;
45-
buffers[bufferCount++] = buf;
46-
buf->clear();
47-
return buf;
48-
}
49-
5041
void PatchProcessor::setParameterValues(int16_t *params){
5142
if(getProgramVector()->hardware_version == OWL_MODULAR_HARDWARE){
5243
for(int i=0; i<4 && i<parameterCount; ++i)

Source/PatchProcessor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class PatchProcessor {
2424
}
2525
int getBlockSize();
2626
double getSampleRate();
27-
AudioBuffer* createMemoryBuffer(int channels, int samples);
2827
void setParameterValues(int16_t* parameters);
2928
Patch* patch;
3029
uint8_t index;

0 commit comments

Comments
 (0)