Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 555 Bytes
#ifndef _SAMPLE_MIXER_H_
#define _SAMPLE_MIXER_H_
/*
* SampleMixer.h
* Sin
*
* Created by blucia0a on 8/6/11.
* Copyright 2011 __MyCompanyName__. All rights reserved.
*
*/
#include "SampleSource.h"
#define MIXER_MAX_SRCS 100
class SampleMixer : public SampleSource{
unsigned numSources;
SampleSource **srcs;
public:
SampleMixer();
bool Add(SampleSource *s);
SampleSource *Remove(unsigned i);
void Mix(int numSources, SampleSource **srcs, float *out);
void getNextSample(float *out);
};
#endif