blob: faaff178373f4746b5de8e92a911c64ee77475f2 [file] [log] [blame]
// 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 <deque>
#include <vector>
#include "base/basictypes.h"
#include "media/base/media_export.h"
namespace media {
// Returns the length of a MIDI message in bytes. Never returns 4 or greater.
// Returns 0 if |status_byte| is:
// - not a valid status byte, namely data byte.
// - the MIDI System Exclusive message.
// - the End of System Exclusive message.
MEDIA_EXPORT size_t GetMidiMessageLength(uint8 status_byte);
const uint8 kSysExByte = 0xf0;
const uint8 kEndOfSysExByte = 0xf7;
const uint8 kSysMessageBitMask = 0xf0;
const uint8 kSysMessageBitPattern = 0xf0;
const uint8 kSysRTMessageBitMask = 0xf8;
const uint8 kSysRTMessageBitPattern = 0xf8;
} // namespace media