📄 pcmdecode.h
字号:
/* <LIC_AMD_STD> * Copyright (C) 2003-2005 Advanced Micro Devices, Inc. All Rights Reserved. * * Unless otherwise designated in writing, this software and any related * documentation are the confidential proprietary information of AMD. * THESE MATERIALS ARE PROVIDED "AS IS" WITHOUT ANY * UNLESS OTHERWISE NOTED IN WRITING, EXPRESS OR IMPLIED WARRANTY OF ANY * KIND, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, * NONINFRINGEMENT, TITLE, FITNESS FOR ANY PARTICULAR PURPOSE AND IN NO * EVENT SHALL AMD OR ITS LICENSORS BE LIABLE FOR ANY DAMAGES WHATSOEVER. * * AMD does not assume any responsibility for any errors which may appear * in the Materials nor any responsibility to support or update the * Materials. AMD retains the right to modify the Materials at any time, * without notice, and is not obligated to provide such modified * Materials to you. AMD is not obligated to furnish, support, or make * any further information available to you. * </LIC_AMD_STD> *//* <CTL_AMD_STD> * </CTL_AMD_STD> *//* <DOC_AMD_STD> * </DOC_AMD_STD> */extern void init_wav_decode(audiodecChangeInfo *ci);extern void set_no_header_wav_decode(void);extern int decode_wav_audio(audiodecChangeInfo *ci, short *p_outbuf, int *out_size, unsigned char *in_buf, int inbuf_size);extern int decode_pcm_audio(audiodecChangeInfo *ci, short *p_outbuf, int *out_size, unsigned char *in_buf, int inbuf_size, int sample_size, int big_endian);extern void setup_pcm_conversions(unsigned short *channels, unsigned int *sampling_rate, int buffer_max_size);extern void close_pcm_decoders(void);#if defined(UNDER_CE) #define DO_RATECONVERSION_AND_DOWNMIX 1#else #define DO_RATECONVERSION_AND_DOWNMIX 0#endiftypedef struct wavheaderinfo_s{ unsigned int iSamplesPerSec; /* sample per second per channel */ unsigned int iBitsPerSample; /* the audio renderer expands or truncates to 16 bits */ unsigned int iChannels; unsigned int iBitrate; /* bps, bits per second */ unsigned int iFramesize; unsigned int iDuration; /* milliseconds */ unsigned int iEmphasis; /* can be used to trigger a de-emphasis filter */ unsigned int iLayer; /* MP3 = MPEG 1, 2, 0r 2.5, layer 3 */ char pcDecoderFullName[24]; /* e.g: Ogg Vorbis, MPEG 2.5 layer 3, AAC Nero MP4, etc. */} wavheaderinfo_t;extern wavheaderinfo_t wavheader;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -