• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*----------------------------------------------------------------------------
2  *
3  * File:
4  * eas_midi.h
5  *
6  * Contents and purpose:
7  * Prototypes for MIDI stream parsing functions
8  *
9  *
10  * Copyright Sonic Network Inc. 2005
11 
12  * Licensed under the Apache License, Version 2.0 (the "License");
13  * you may not use this file except in compliance with the License.
14  * You may obtain a copy of the License at
15  *
16  *      http://www.apache.org/licenses/LICENSE-2.0
17  *
18  * Unless required by applicable law or agreed to in writing, software
19  * distributed under the License is distributed on an "AS IS" BASIS,
20  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  * See the License for the specific language governing permissions and
22  * limitations under the License.
23  *
24  *----------------------------------------------------------------------------
25  * Revision Control:
26  *   $Revision: 82 $
27  *   $Date: 2006-07-10 11:45:19 -0700 (Mon, 10 Jul 2006) $
28  *----------------------------------------------------------------------------
29 */
30 
31 #ifndef _EAS_MIDI_H
32 #define _EAS_MIDI_H
33 
34 /*----------------------------------------------------------------------------
35  * EAS_InitMIDIStream()
36  *----------------------------------------------------------------------------
37  * Purpose:
38  * Initializes the MIDI stream state for parsing.
39  *
40  * Inputs:
41  *
42  * Outputs:
43  * returns EAS_RESULT (EAS_SUCCESS is OK)
44  *
45  * Side Effects:
46  *
47  *----------------------------------------------------------------------------
48 */
49 void 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 */
68 EAS_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