~ubuntu-branches/ubuntu/quantal/muse/quantal

« back to all changes in this revision

Viewing changes to muse/waveevent.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-07-18 16:07:06 UTC
  • mfrom: (1.2.4)
  • mto: This revision was merged to the branch mainline in revision 31.
  • Revision ID: package-import@ubuntu.com-20120718160706-v4jjhddysh9i2bqr
Tags: upstream-2.0
ImportĀ upstreamĀ versionĀ 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#ifndef __WAVE_EVENT_H__
25
25
#define __WAVE_EVENT_H__
26
26
 
27
 
//#include <samplerate.h>
28
27
#include <sys/types.h>
29
28
 
30
29
#include "eventbase.h"
45
44
      int _spos;        // start sample position in WaveFile
46
45
      bool deleted;
47
46
 
48
 
      // p3.3.31
49
 
      //virtual EventBase* clone() { return new WaveEventBase(*this); }
50
47
      virtual EventBase* clone();
51
48
 
52
49
   public:
54
51
      virtual ~WaveEventBase() {}
55
52
 
56
53
      virtual void read(Xml&);
57
 
      //virtual void write(int, Xml&, const Pos& offset) const;
58
54
      virtual void write(int, Xml&, const Pos& offset, bool forcePath = false) const;
59
55
      virtual EventBase* mid(unsigned, unsigned);
60
56
      
67
63
      virtual SndFileR sndFile() const         { return f;      }
68
64
      virtual void setSndFile(SndFileR& sf)    { f = sf;        }
69
65
      
70
 
      // Changed by Tim. p3.3.17
71
 
      //virtual void read(unsigned offset, float** bpp, int channels, int nn, bool overwrite = true);
72
 
      //virtual void readAudio(unsigned /*offset*/, float** /*bpp*/, int /*channels*/, int /*nn*/, bool /*doSeek*/, bool /*overwrite*/);
73
 
      //virtual off_t readAudio(SRC_STATE* /*src_state*/, off_t /*sfCurFrame*/, unsigned /*offset*/, 
74
 
      //                       float** /*bpp*/, int /*channels*/, int /*nn*/, bool /*doSeek*/, bool /*overwrite*/);
75
 
      //virtual off_t readAudio(AudioConverter* /*audConv*/, off_t /*sfCurFrame*/, unsigned /*offset*/, 
76
 
      //                       float** /*bpp*/, int /*channels*/, int /*nn*/, bool /*doSeek*/, bool /*overwrite*/);
77
 
      virtual void readAudio(WavePart* /*part*/, unsigned /*offset*/, 
78
 
                             float** /*bpp*/, int /*channels*/, int /*nn*/, bool /*doSeek*/, bool /*overwrite*/);
 
66
      virtual void readAudio(WavePart* part, unsigned offset, 
 
67
                             float** bpp, int channels, int nn, bool doSeek, bool overwrite);
79
68
      };
80
69
      
81
70
} // namespace MusECore