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

📄 volume.h

📁 基于EP7312的MP3播放器源代码,包括MCU和PC端代码.
💻 H
字号:
//****************************************************************************//// VOLUME.H - Contains function prototypes for the routines in the volume//            control.//// Copyright (c) 1999,2000,2001 Cirrus Logic, Inc.////****************************************************************************#include "buffer/buffer.h"//****************************************************************************//// The persistent state of the volume control.////****************************************************************************typedef struct{    //    // The scalar for the current volume setting.    //    unsigned short usVolume;    //    // A boolean which is true if the audio should be passed through the volume    // control.    //    unsigned short bProcessAudio;    //    // The buffer from which we receive input data.    //    BufferState sInputBuffer;    //    // The buffer to which we send output data.    //    BufferState *pOutputBuffer;} tVolumeControl;//****************************************************************************//// Function prototypes.////****************************************************************************extern void VolumeInit(tVolumeControl *pVol, BufferState *pOutputBuffer);extern void VolumeAdjust(tVolumeControl *pVol, long lGain);extern void VolumeEnable(tVolumeControl *pVol);extern void VolumeDisable(tVolumeControl *pVol);extern BufferState *VolumeGetInputBuffer(tVolumeControl *pVol);

⌨️ 快捷键说明

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