eas_wavefile.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*----------------------------------------------------------------------------
  2. *
  3. * File:
  4. * eas_wavefile.h
  5. *
  6. * Contents and purpose:
  7. * Static data block for wave file parser.
  8. *
  9. * Copyright Sonic Network Inc. 2005
  10. * Licensed under the Apache License, Version 2.0 (the "License");
  11. * you may not use this file except in compliance with the License.
  12. * You may obtain a copy of the License at
  13. *
  14. * http://www.apache.org/licenses/LICENSE-2.0
  15. *
  16. * Unless required by applicable law or agreed to in writing, software
  17. * distributed under the License is distributed on an "AS IS" BASIS,
  18. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  19. * See the License for the specific language governing permissions and
  20. * limitations under the License.
  21. *
  22. *----------------------------------------------------------------------------
  23. * Revision Control:
  24. * $Revision: 439 $
  25. * $Date: 2006-10-26 11:53:18 -0700 (Thu, 26 Oct 2006) $
  26. *----------------------------------------------------------------------------
  27. */
  28. #ifndef _EAS_WAVEFILE_H
  29. #define _EAS_WAVEFILE_H
  30. #include "eas_data.h"
  31. #include "eas_pcm.h"
  32. /*----------------------------------------------------------------------------
  33. *
  34. * S_WAVE_STATE
  35. *
  36. * This structure contains the WAVE file parser state information
  37. *----------------------------------------------------------------------------
  38. */
  39. typedef struct s_wave_state_tag
  40. {
  41. EAS_FILE_HANDLE fileHandle;
  42. EAS_PCM_HANDLE streamHandle;
  43. S_METADATA_CB metadata;
  44. EAS_U32 time;
  45. EAS_I32 fileOffset;
  46. EAS_I32 audioOffset;
  47. EAS_I32 mediaLength;
  48. EAS_U32 audioSize;
  49. EAS_U32 flags;
  50. EAS_I16 fileType;
  51. #ifdef MMAPI_SUPPORT
  52. EAS_VOID_PTR fmtChunk;
  53. #endif
  54. EAS_I32 infoChunkPos;
  55. EAS_I32 infoChunkSize;
  56. } S_WAVE_STATE;
  57. #endif