haiku/headers/os/midi/MidiSynthFile.h
mahlzeit 38c7401ebe cleaned up midi1
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-17 22:24:09 +00:00

62 lines
1.2 KiB
C++

#ifndef _MIDI_SYNTH_FILE_H
#define _MIDI_SYNTH_FILE_H
#include <BeBuild.h>
#include <MidiSynth.h>
#include <Entry.h>
typedef void (*synth_file_hook)(int32 arg);
class BMidiSynthFile : public BMidiSynth
{
public:
BMidiSynthFile();
~BMidiSynthFile();
status_t LoadFile(const entry_ref* midi_entry_ref);
void UnloadFile(void);
virtual status_t Start(void);
virtual void Stop(void);
void Fade(void);
void Pause(void);
void Resume(void);
int32 Duration(void) const;
int32 Position(int32 ticks) const;
int32 Seek();
status_t GetPatches(int16* pArray768, int16* pReturnedCount) const;
void SetFileHook(synth_file_hook pSongHook, int32 arg);
bool IsFinished(void) const;
void ScaleTempoBy(double tempoFactor);
void SetTempo(int32 newTempoBPM);
int32 Tempo(void) const;
void EnableLooping(bool loop);
void MuteTrack(int16 track, bool do_mute);
void GetMuteMap(char* pTracks) const;
void SoloTrack(int16 track, bool do_solo);
void GetSoloMap(char* pTracks) const;
private:
friend class BSynth;
virtual void _ReservedMidiSynthFile1();
virtual void _ReservedMidiSynthFile2();
virtual void _ReservedMidiSynthFile3();
uint32 _reserved[4];
};
#endif // _MIDI_SYNTH_FILE