#ifndef MEDIA_MIDI_MIDI_MANAGER_WIN_H_
#define MEDIA_MIDI_MIDI_MANAGER_WIN_H_
#include <vector>
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/threading/thread.h"
#include "media/midi/midi_manager.h"
namespace media {
class MidiManagerWin : public MidiManager {
public:
MidiManagerWin();
virtual ~MidiManagerWin();
virtual bool Initialize() OVERRIDE;
virtual void DispatchSendMidiData(MidiManagerClient* client,
uint32 port_index,
const std::vector<uint8>& data,
double timestamp) OVERRIDE;
private:
class InDeviceInfo;
class OutDeviceInfo;
std::vector<scoped_ptr<InDeviceInfo> > in_devices_;
std::vector<scoped_ptr<OutDeviceInfo> > out_devices_;
base::Thread send_thread_;
DISALLOW_COPY_AND_ASSIGN(MidiManagerWin);
};
}
#endif