使用OpenAL录制音频 [英] Recording Audio with OpenAL

查看:219
本文介绍了使用OpenAL录制音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在比较C ++中提供的各种音频库。我想知道,我有点卡住开始与OpenAL。有人可以指出一个示例程序如何使用C ++中的OpenAL从麦克风录音。

I've been comparing various audio libraries available in C++. I was wondering, I'm kind of stuck starting with OpenAL. Can someone point out an example program how to record from a mic using OpenAL in C++.

提前感谢!

推荐答案

上次我检查OpenAL这很简单。您创建录音设备并开始录音。然后你只需调用get buffer函数。它将等待,直到有足够的数据填充缓冲区,然后在有足够的数据时返回。

Last time I checked OpenAL it was quite simple. You create the recording device and start the recording going. You then just call the get buffer function. It will wait until there is enough data to fill the buffer and then return when there is enough data.

为什么不只是看看捕获 OpenAL SDK ...?

Why not just look at the "capture" example that comes with the OpenAL SDK ...?

这篇关于使用OpenAL录制音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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