计算机如何处理音频数据? [英] How do computers process audio data?

查看:157
本文介绍了计算机如何处理音频数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用了一些音频程序,例如SDL混音器,大胆等,但是我想看看这些小音频玩具里面有什么.音频数据如何处理等.我还看到了C ++中的MP3播放器的一些示例代码,该示例代码将void*用于音频数据.

I have used several audio programs such as SDL mixer, audacity, etc. but I want to see what's inside these little audio toys. How does audio data get processed and such. I've also seen some sample codes of an MP3 player in C++ that it uses void* for audio data.

但是,所有这些都无法帮助我大致了解计算机中音频的工作方式.因此,有人可以向我解释(或向我介绍一些书)关于计算机如何存储和处理数字音频数据吗? (例如,如果将三角波形存储到.wav文件中,该波形如何存储为位模式?)

But all these do not help me understand in general about how audio work in computer. So could somebody explain to me (or introduce me some books) on how do computers store and process digital audio data? (for instance, if you store a triangle waveform into a .wav file, how does this waveform get stored as bit pattern?)

推荐答案

波形的表示方式

Audacity手册< :

There is a more detailed explanation of how audio is represented in the Audacity manual:

...每条垂直线的高度表示为一个带符号的数字.

...the height of each vertical line is represented as a signed number.

有关数字音频的更多信息

  • The Audacity wiki has some information about how algorithms in Audacity work. If there is a specific audio effect in Audacity that you want to know more about, that isn't already covered, you can leave a question there.
  • If you are looking at source code, the echo effect is a good place to start.
  • For much much more about digital audio, click the Wikipedia buttons for links that interest you on this page. The ones at the foot of that page are particularly useful for digging deeper into the different audio file formats that are out there.

您可能会注意到所有这些链接均来自Audacity项目.这不是巧合.

You may notice that all these links come from the Audacity project. That's not a coincidence.

这篇关于计算机如何处理音频数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆