volume.h
来自「基于EP7312的MP3播放器源代码,包括MCU和PC端代码.」· C头文件 代码 · 共 50 行
H
50 行
//****************************************************************************//// 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 + =
减小字号Ctrl + -
显示快捷键?