stuff-from-scratch/src/audio/midi/reader/MidiChannelEventAdapter.h
2021-05-23 21:02:38 +01:00

14 lines
396 B
C++

#pragma once
#include "MidiChannelEvent.h"
#include <fstream>
class MidiChannelEventAdapter
{
public:
static int ReadEvent(std::ifstream* file, char firstByte, MidiChannelEvent* event, MidiChannelEvent::Type& lastEventType);
static int ReadEventData(std::ifstream* file, MidiChannelEvent* event, char c);
static int ReadEventData(std::ifstream* file, MidiChannelEvent* event);
};