Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Side by Side Diff: media/midi/midi_manager_alsa.cc

Issue 1276233005: [WebMIDI] Add "use-android-midi-api" flag for Android M+ devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_alsa.h" 5 #include "media/midi/midi_manager_alsa.h"
6 6
7 #include <poll.h> 7 #include <poll.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 if (err != 0) { 1335 if (err != 0) {
1336 VLOG(1) << "snd_seq_subscribe_port fails: " << snd_strerror(err); 1336 VLOG(1) << "snd_seq_subscribe_port fails: " << snd_strerror(err);
1337 return false; 1337 return false;
1338 } 1338 }
1339 1339
1340 // Update our map. 1340 // Update our map.
1341 source_map_[AddrToInt(client_id, port_id)] = port_index; 1341 source_map_[AddrToInt(client_id, port_id)] = port_index;
1342 return true; 1342 return true;
1343 } 1343 }
1344 1344
1345 MidiManager* MidiManager::Create() { 1345 MidiManager* MidiManager::Create(const CreationOptions&) {
1346 return new MidiManagerAlsa(); 1346 return new MidiManagerAlsa();
1347 } 1347 }
1348 1348
1349 } // namespace midi 1349 } // namespace midi
1350 } // namespace media 1350 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698