⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abl_wave.h

📁 SHARP_ARM720T_LH79524/5软件开发包_支持TFT_LCD_NAND_FLASH_ETH_USB
💻 H
字号:
/***********************************************************************
 * $Workfile:   abl_wave.h  $
 * $Revision:   1.0  $
 * $Author:   WellsK  $
 * $Date:   Oct 04 2004 14:02:24  $
 *
 * Project: Wave file definitions
 *
 * Description:
 *     This file contains the structure definitions and manifest
 *     constants for the following component:
 *         Wave file formats
 *
 * Revision History:
 * $Log:   //smaicnt2/pvcs/VM/sharpmcu/archives/sharpmcu/software/abl/include/abl_wave.h-arc  $
 * 
 *    Rev 1.0   Oct 04 2004 14:02:24   WellsK
 * Initial revision.
 * 
 *
 ***********************************************************************
 * SHARP MICROELECTRONICS OF THE AMERICAS MAKES NO REPRESENTATION
 * OR WARRANTIES WITH RESPECT TO THE PERFORMANCE OF THIS SOFTWARE,
 * AND SPECIFICALLY DISCLAIMS ANY RESPONSIBILITY FOR ANY DAMAGES, 
 * SPECIAL OR CONSEQUENTIAL, CONNECTED WITH THE USE OF THIS SOFTWARE.
 *
 * SHARP MICROELECTRONICS OF THE AMERICAS PROVIDES THIS SOFTWARE SOLELY 
 * FOR THE PURPOSE OF SOFTWARE DEVELOPMENT INCORPORATING THE USE OF A 
 * SHARP MICROCONTROLLER OR SYSTEM-ON-CHIP PRODUCT. USE OF THIS SOURCE
 * FILE IMPLIES ACCEPTANCE OF THESE CONDITIONS.
 *
 * COPYRIGHT (C) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
 *     CAMAS, WA
 **********************************************************************/

#include "abl_types.h"

#ifndef SMA_WAVE_H
#define SMA_WAVE_H

/***********************************************************************
 * Defines
 **********************************************************************/

#define RIFF_CHUNK_ID     "RIFF"   /* ID name for the RIFF chunk */
#define FORMAT_CHUNK_ID   "fmt "   /* ID name for the format chunk */
#define DATA_CHUNK_ID     "data"   /* ID name for a data chunk */
#define CHUNK_ID_SIZE     4        /* Size of a chunk name ID */

#define WAVE_TAG_ID       "WAVE"   /* ID name for 'wave' name check */
#define WAVE_TAG_SIZE     4        /* Size of the 'wave' ID */

#define WTAG_NOCOMPRESS   0x1      /* Uncompressed audio tag for
                                      wformattag */

/***********************************************************************
 * Types
 **********************************************************************/

/* Structure containing the information of a RIFF chunk */
typedef struct
{
    CHAR     id[4];        /* Should be "riff " */
    UNS_32   chunksize;    /* Size of this chunk (minus 8) */
    CHAR     waveid[4];    /* Should be "wave " */
} RIFF_CHUNK_T;

/* Structure that contains the format chunk information */
typedef struct
{
    CHAR     id[4];        /* Should be "fmt " */
    UNS_32   chunksize;    /* Size of this chunk (minus 8) */
    INT_16   wformattag;   /* Format tag (0 = uncompressed) */
    UNS_16   wchannels;    /* # of channels (1 = mono/2 = stereo) */
    UNS_32   samplessec;   /* Samples per second (frequency) */
    UNS_32   bytespersec;  /* Bytes per second */
    UNS_16   blockalign;   /* Single sample size in bytes */
    UNS_16   bitssample;   /* Bits per samples */
} FORMAT_CHUNK_T;

/* Structure that contains the data chunk information */
typedef struct
{
    CHAR     id[4];        /* Should be "data" */
    UNS_32   chunksize;    /* Size of this chunk (minus 8) */
} DATA_CHUNK_T;

#endif /* SMA_WAVE_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -