开发者

formats.h file containing WAV file format info

I am trying to make a prog which can record voice and store it in digital audio format on LINUX using ALSA. (currently using Ubuntu). While looking for some help on net, I found this code from here

#include "formats.h"
...
...
  WaveChunkHeader      wch, ch = {WAV_FMT,16};
  WaveHeader           h;
  WaveFmtBody开发者_StackOverflow社区          f;
  wch.type     = WAV_DATA;
...
...

However, I don't have "formats.h" header file on my system. Any one know from where(which dev pkg) I can get this header file (containing audio file format related info)?

Thanks, Vikram


it should be in the alsa-utils package, subdirectory aplay:

http://alsa-utils.sourcearchive.com/documentation/1.0.17/formats_8h-source.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜