quantaudio.c
来自「CHP 3 - Real-Time Digital Signal Process」· C语言 代码 · 共 24 行
C
24 行
//
// Project: Experiment 3.6.2 Quantization Audio - Chapter 3
// File name: quantAudio.c
//
// Description: This function performs quantization to audio data and plays back
// audio samples on C5510 DSK.
//
// For the book "Real Time Digital Signal Processing:
// Implementation and Application, 2nd Ed"
// By Sen M. Kuo, Bob H. Lee, and Wenshun Tian
// Publisher: John Wiley and Sons, Ltd
//
// Tools used: CCS v.2.12.07
// TMS320VC5510 DSK Rev-C
//
short quantAudio(short indata, short quant);
short quantAudio(short indata, short quant)
{
return(indata&quant); // Quantization by masking the data sample
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?