OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/midi/midi_manager_win.h" | 5 #include "media/midi/midi_manager_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <ks.h> | 8 #include <ks.h> |
9 #include <ksmedia.h> | 9 #include <ksmedia.h> |
10 #include <mmreg.h> | 10 #include <mmreg.h> |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 MidiPortState state) { | 1169 MidiPortState state) { |
1170 SetOutputPortState(port_index, state); | 1170 SetOutputPortState(port_index, state); |
1171 } | 1171 } |
1172 | 1172 |
1173 void MidiManagerWin::OnReceiveMidiData(uint32 port_index, | 1173 void MidiManagerWin::OnReceiveMidiData(uint32 port_index, |
1174 const std::vector<uint8>& data, | 1174 const std::vector<uint8>& data, |
1175 base::TimeTicks time) { | 1175 base::TimeTicks time) { |
1176 ReceiveMidiData(port_index, &data[0], data.size(), time); | 1176 ReceiveMidiData(port_index, &data[0], data.size(), time); |
1177 } | 1177 } |
1178 | 1178 |
1179 MidiManager* MidiManager::Create() { | 1179 MidiManager* MidiManager::Create(const CreationOptions&) { |
1180 return new MidiManagerWin(); | 1180 return new MidiManagerWin(); |
1181 } | 1181 } |
1182 | 1182 |
1183 } // namespace midi | 1183 } // namespace midi |
1184 } // namespace media | 1184 } // namespace media |
OLD | NEW |