| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_ | |
| 6 #define MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_ | |
| 7 | |
| 8 #include <deque> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "base/basictypes.h" | |
| 12 #include "media/base/media_export.h" | |
| 13 | |
| 14 namespace media { | |
| 15 | |
| 16 // Returns the length of a MIDI message in bytes. Never returns 4 or greater. | |
| 17 // Returns 0 if |status_byte| is: | |
| 18 // - not a valid status byte, namely data byte. | |
| 19 // - the MIDI System Exclusive message. | |
| 20 // - the End of System Exclusive message. | |
| 21 MEDIA_EXPORT size_t GetMIDIMessageLength(uint8 status_byte); | |
| 22 | |
| 23 } // namespace media | |
| 24 | |
| 25 #endif // MEDIA_MIDI_MIDI_MESSAGE_UTIL_H_ | |
| OLD | NEW |