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

Unified Diff: trunk/src/media/midi/midi_message_util.cc

Issue 93583002: Revert 237558 "Use MIDIMessageQueue/IsValidWebMIDIData for MIDI ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/media/midi/midi_message_util.h ('k') | trunk/src/media/midi/midi_message_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/media/midi/midi_message_util.cc
===================================================================
--- trunk/src/media/midi/midi_message_util.cc (revision 237659)
+++ trunk/src/media/midi/midi_message_util.cc (working copy)
@@ -1,34 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "media/midi/midi_message_util.h"
-
-namespace media {
-
-size_t GetMIDIMessageLength(uint8 status_byte) {
- if (status_byte < 0x80)
- return 0;
- if (0x80 <= status_byte && status_byte <= 0xbf)
- return 3;
- if (0xc0 <= status_byte && status_byte <= 0xdf)
- return 2;
- if (0xe0 <= status_byte && status_byte <= 0xef)
- return 3;
- if (status_byte == 0xf0)
- return 0;
- if (status_byte == 0xf1)
- return 2;
- if (status_byte == 0xf2)
- return 3;
- if (status_byte == 0xf3)
- return 2;
- if (0xf4 <= status_byte && status_byte <= 0xf6)
- return 1;
- if (status_byte == 0xf7)
- return 0;
- // 0xf8 <= status_byte && status_byte <= 0xff
- return 1;
-}
-
-} // namespace media
« no previous file with comments | « trunk/src/media/midi/midi_message_util.h ('k') | trunk/src/media/midi/midi_message_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698