VocalEasel/Sources/VLSoundOut.h

48 lines
903 B
C
Raw Normal View History

2007-04-27 06:41:34 +00:00
//
// File: VLSoundOut.h - Sound output and file conversion
//
// Author(s):
//
// (MN) Matthias Neeracher
//
// Copyright © 2005-2007 Matthias Neeracher
//
2006-09-11 02:49:56 +00:00
#include "VLModel.h"
2006-11-13 04:26:09 +00:00
#import <CoreFoundation/CoreFoundation.h>
2006-09-11 02:49:56 +00:00
class VLSoundEvent {
protected:
VLSoundEvent() {}
public:
virtual ~VLSoundEvent();
virtual void Perform() {}
};
class VLSoundScheduler {
public:
virtual void Schedule(VLSoundEvent * what, float when);
virtual ~VLSoundScheduler() {}
};
2006-09-11 02:49:56 +00:00
class VLSoundOut {
public:
static VLSoundOut * Instance();
2006-11-27 07:01:38 +00:00
static VLSoundOut * FileWriter(CFURLRef file, OSType dataFormat);
static void SetScheduler(VLSoundScheduler * scheduler);
2006-09-11 02:49:56 +00:00
virtual void PlayNote(const VLNote & note) = 0;
virtual void PlayChord(const VLChord & chord) = 0;
2006-11-13 04:26:09 +00:00
virtual void PlayFile(CFDataRef file) = 0;
2007-01-02 07:01:55 +00:00
virtual void Stop() = 0;
2006-09-11 02:49:56 +00:00
virtual ~VLSoundOut();
};
// Local Variables:
// mode:C++
// End: