summaryrefslogtreecommitdiffstats
path: root/nebu/include/audio/nebu_SourceCopy.h
blob: 97ca88a333759c30128e8431e4402c9e3a91b118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef NEBU_Sound_SourceCopy_H
#define NEBU_Sound_SourceCopy_H

#include "audio/nebu_Sound.h"
#include "audio/nebu_SoundSystem.h"
#include "audio/nebu_SourceSample.h"
#include "base/nebu_Vector3.h"

namespace Sound {
  class SourceCopy : public Source { 
  public:
    SourceCopy(SourceSample *source) { 
      _source = source;

      _position = 0;
    };
    SourceSample* _source;
    virtual int Mix(Uint8 *data, int len);
    // protected:
    int _position;
  };
}

#endif