eas_midi.h revision 56c99cd2c2c1e6ab038dac5fced5b92ccf11ff6c
12d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org/*---------------------------------------------------------------------------- 22d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * 32d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * File: 42d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * eas_midi.h 52d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * 62d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * Contents and purpose: 72d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * Prototypes for MIDI stream parsing functions 82d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * 92d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * 102d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * Copyright Sonic Network Inc. 2005 112d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org 122d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * Licensed under the Apache License, Version 2.0 (the "License"); 132d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * you may not use this file except in compliance with the License. 14ef57b7e65330d5f794a513630517907500f1c1d0commit-bot@chromium.org * You may obtain a copy of the License at 152d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * 162d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * http://www.apache.org/licenses/LICENSE-2.0 1790b5a2a653b312ff9bcd7102412da2dbeb52368ccommit-bot@chromium.org * 1890b5a2a653b312ff9bcd7102412da2dbeb52368ccommit-bot@chromium.org * Unless required by applicable law or agreed to in writing, software 1990b5a2a653b312ff9bcd7102412da2dbeb52368ccommit-bot@chromium.org * distributed under the License is distributed on an "AS IS" BASIS, 2090b5a2a653b312ff9bcd7102412da2dbeb52368ccommit-bot@chromium.org * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2190b5a2a653b312ff9bcd7102412da2dbeb52368ccommit-bot@chromium.org * See the License for the specific language governing permissions and 2290b5a2a653b312ff9bcd7102412da2dbeb52368ccommit-bot@chromium.org * limitations under the License. 232d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * 242d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org *---------------------------------------------------------------------------- 252d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * Revision Control: 2690b5a2a653b312ff9bcd7102412da2dbeb52368ccommit-bot@chromium.org * $Revision: 82 $ 272d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * $Date: 2006-07-10 11:45:19 -0700 (Mon, 10 Jul 2006) $ 282d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org *---------------------------------------------------------------------------- 292d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org*/ 302d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org 312d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org#ifndef _EAS_MIDI_H 322d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org#define _EAS_MIDI_H 332d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org 342d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org/*---------------------------------------------------------------------------- 352d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * EAS_InitMIDIStream() 362d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org *---------------------------------------------------------------------------- 372d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * Purpose: 382d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * Initializes the MIDI stream state for parsing. 392d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * 402d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * Inputs: 412d3a7897e55a76a4dc9f27ae865d1d230163f584commit-bot@chromium.org * 42 * Outputs: 43 * returns EAS_RESULT (EAS_SUCCESS is OK) 44 * 45 * Side Effects: 46 * 47 *---------------------------------------------------------------------------- 48*/ 49void EAS_InitMIDIStream (S_MIDI_STREAM *pMIDIStream); 50 51/*---------------------------------------------------------------------------- 52 * EAS_ParseMIDIStream() 53 *---------------------------------------------------------------------------- 54 * Purpose: 55 * Parses a MIDI input stream character by character. Characters are pushed (rather than pulled) 56 * so the interface works equally well for both file and stream I/O. 57 * 58 * Inputs: 59 * c - character from MIDI stream 60 * 61 * Outputs: 62 * returns EAS_RESULT (EAS_SUCCESS is OK) 63 * 64 * Side Effects: 65 * 66 *---------------------------------------------------------------------------- 67*/ 68EAS_RESULT EAS_ParseMIDIStream (S_EAS_DATA *pEASData, S_SYNTH *pSynth, S_MIDI_STREAM *pMIDIStream, EAS_U8 c, EAS_INT parserMode); 69 70#endif /* #define _EAS_MIDI_H */ 71 72