Cog Audio: Allocate maximum needed audio memory
The chunk could be any format, up to floating point double samples, and up to 18 channels. Signed-off-by: Christopher Snowhill <kode54@gmail.com>CQTexperiment
parent
7f8c19799d
commit
3711999112
|
@ -134,7 +134,7 @@
|
||||||
- (void)process {
|
- (void)process {
|
||||||
int amountInBuffer = 0;
|
int amountInBuffer = 0;
|
||||||
int bytesInBuffer = 0;
|
int bytesInBuffer = 0;
|
||||||
void *inputBuffer = malloc(CHUNK_SIZE * 18); // Maximum 18 channels, dunno what we'll receive
|
void *inputBuffer = malloc(CHUNK_SIZE * 8 * 18); // Maximum 18 channels, dunno what we'll receive
|
||||||
|
|
||||||
BOOL shouldClose = YES;
|
BOOL shouldClose = YES;
|
||||||
BOOL seekError = NO;
|
BOOL seekError = NO;
|
||||||
|
|
Loading…
Reference in New Issue