eas_smfdata.c 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*----------------------------------------------------------------------------
  2. *
  3. * File:
  4. * eas_smfdata.c
  5. *
  6. * Contents and purpose:
  7. * SMF File Parser
  8. *
  9. * This file contains data definitions for the SMF parser.
  10. *
  11. * Copyright Sonic Network Inc. 2005
  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: 778 $
  27. * $Date: 2007-07-23 16:45:17 -0700 (Mon, 23 Jul 2007) $
  28. *----------------------------------------------------------------------------
  29. */
  30. #include "eas_miditypes.h"
  31. #include "eas_smfdata.h"
  32. /*----------------------------------------------------------------------------
  33. *
  34. * S_SMF_STREAM
  35. *
  36. * Static memory allocation for SMF parser
  37. *----------------------------------------------------------------------------
  38. */
  39. static S_SMF_STREAM eas_SMFStreams[MAX_SMF_STREAMS];
  40. /*----------------------------------------------------------------------------
  41. *
  42. * eas_SMFData
  43. *
  44. * Static memory allocation for SMF parser
  45. *----------------------------------------------------------------------------
  46. */
  47. S_SMF_DATA eas_SMFData =
  48. {
  49. eas_SMFStreams, /* pointer to individual streams in file */
  50. 0, /* pointer to next stream with event */
  51. 0, /* pointer to synth */
  52. 0, /* file handle */
  53. { 0, 0, 0, 0}, /* metadata callback */
  54. 0, /* file offset */
  55. 0, /* current time in milliseconds/256 */
  56. 0, /* actual number of streams */
  57. 0, /* current MIDI tick to msec conversion */
  58. 0, /* ticks per quarter note */
  59. 0, /* current state EAS_STATE_XXXX */
  60. 0 /* flags */
  61. };