openal

OpenAL: alBufferData returns AL_INVALID_VALUE even though input variables *look* OK?

萝らか妹 提交于 2021-02-07 19:24:26
问题 So, I'm building a threaded IMA ADPCM decoder streaming audio data to OpenAL (see below for short description) but I've run into some trouble. One of my issues is that sometimes my call to alBufferData: alBufferData(*bufferID, format, pcmData, sizeInBytes, bitRate); returns AL_INVALID_VALUE even though, when checking the parameters they look, e.g., like this: bufferID='109770616', format='AL_FORMAT_STEREO16', dataPtr='109754188', sizeInBytes='8164' Any clues, anyone? The actual sound being

How to install OpenAL SDK on Ubuntu?

荒凉一梦 提交于 2021-01-21 11:25:34
问题 I'm very new to Linux and programming on Linux. I'm trying to install OpenAL SDK on ubuntu ... My best guess is that I will need to download OpenAL from the CVS repo. I found a tutorial: http://www.edenwaith.com/products/pige/tutorials/openal.php However, when I try to run the terminal command this is what happens: steven@ubuntu:~$ cvs -d:pserver:guest@opensource.creative.com:/usr/local/cvs-repository login Logging in to :pserver:guest@opensource.creative.com:2401/usr/local/cvs-repository CVS

Functions of Open AL giving error of undefined reference while compiling with g++ in ubuntu [duplicate]

…衆ロ難τιáo~ 提交于 2020-08-20 06:34:27
问题 This question already has answers here : What is an undefined reference/unresolved external symbol error and how do I fix it? (34 answers) Closed 3 years ago . I am completely new to Open AL. So I started with installing Open AL library through command line sudo apt-get install libopenal-dev And also I installed alut installed with this command sudo apt-get install libalut0 libalut-dev Also I forked open Al from http://kcat.strangesoft.net/openal.html and installed it also. But when I am

最新 iOS 框架整体梳理(三)

社会主义新天地 提交于 2020-08-10 03:51:07
这一篇得把介绍框架这个系列终结了,不能超过三篇了,不然太长了..... 还是老规矩,前面两篇的机票在下方: 最新 iOS 框架整体梳理(一) 最新 iOS 框架整体梳理(二) Part - 3 62、Metal MetalKit Metal ( [ˈmetl] ) 这是一个和 OpenGLES 类似的面向底层的图形处理接口,这也是苹果自己搞出来的,所以这个框架我还是推荐要有一个大概的了解。 Metal 系列教程(1)- Metal 介绍及基本使用 (系列文章三篇都是讲述 Metal 的,可以学习一下) iOS渐变二维码之Metal实现篇 官方文档 63、MetalPerdormanceShaders 其实这个 MetalPerdormanceShaders 也是属于Metal的内容,关于它的具体的使用我推荐一篇利用它组高斯迷糊的文章。 学习用MetalPerformanceShaders进行图像处理 官方文档 64、MetricKit 这是一个在 iOS 13 中新加入的框架,iOS 13 中推出了MetricKit,它用于收集和处理电池和性能指标。 iOS MetricsKit 收集电量和性能数据 官方文档 65、MobileCoreServices 要是在iOS10 以后在有一些APP之间跳转的时候是需要这个框架的,我也了解了一下关于这个框架

基于Cocos2d-x 4.0的持续维护的游戏引擎【EGNX】介绍

橙三吉。 提交于 2020-08-08 08:37:21
EGNX是什么? EGNX是Engine-X的缩写,是基于Cocos2d-X 4.0全新打造的持续维护游戏引擎 为什么单独fork,而不是直接向官方提交PR 官方资源全面倾向Cocos Creator 我们有太多的想法和优化 我们希望将引擎C++做到极致 引擎仓库 GitHub 主引擎: https://github.com/c4games/engine-x 三方库: https://github.com/c4games/engine-x-3rd Gitee (国内极速下载) 主引擎: https://gitee.com/c4games/engine-x 三方库: https://gitee.com/c4games/engine-x-3rd 宗旨: C++14/17 专注于natvie平台游戏研发 主要特性: 重构AudioEngine, 全平台OpenAL, 在iOS平台可以通过 -DCC_USE_ALSOFT_ON_APPLE 切换为 openal-soft , 苹果公司已经在iOS12将OpenAL framework标记为废弃的 重构UserDefault, 全平台基于内存映射文件 mio , 性能提升百倍 模块化所有引擎扩展库, 所有扩展库放到extensions目录下,如cocostudio, spine AudioEngine实现wav所有 openal-soft

Why are my audio sounds not playing on time?

怎甘沉沦 提交于 2020-01-23 17:04:45
问题 One of my apps has a simple metronome-style feature that plays a click sound a specified number of times per minute (bpm). I'm doing this by starting an NSTimer, with an interval calculated from the specified bpm, that calls a method that plays the sound. If I put an NSLog line into the play method, I can see that NSTimer is firing accurately to about 1 millisecond. However, if I record the sound output into an audio editor and then measure the interval between clicks, I can see that they are

Why are my audio sounds not playing on time?

十年热恋 提交于 2020-01-23 17:04:11
问题 One of my apps has a simple metronome-style feature that plays a click sound a specified number of times per minute (bpm). I'm doing this by starting an NSTimer, with an interval calculated from the specified bpm, that calls a method that plays the sound. If I put an NSLog line into the play method, I can see that NSTimer is firing accurately to about 1 millisecond. However, if I record the sound output into an audio editor and then measure the interval between clicks, I can see that they are

OpenAL 2d panning C++

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-14 05:11:12
问题 I'm trying to figure out how to get openAL to pan in 2D (by manipulating the 3D positioning). Ideally I want to achieve panning such that the Left or Right channel can be fully engaged with the other channel completely silent. It seems that Open AL handles 3d distances and falloffs nicely, but I'm struggling to emulate this kind of 2D panning. I'm using alDistanceModel(AL_LINEAR_DISTANCE_CLAMPED) float sourcePosition[3] = {0.99f,0.f,0.f}; alSourcefv(sourceID, AL_POSITION, sourcePosition);

How to play looping sound with OpenAL on iPhone

大城市里の小女人 提交于 2020-01-03 16:48:39
问题 I'm following a tutorial about playing sound with OpenAL. Now everything works fine except I can't make the sound looping. I believe that I've used AL_LOOPING for the source. Now it can only play once and when it finishes playing, the app will block(doesn't response to my tap on the play button). Any ideas about what's wrong with the code? // start up openAL // init device and context -(void)initOpenAL { // Initialization mDevice = alcOpenDevice(NULL); // select the "preferred device" if

OpenAL tone generation on iPhone

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-02 06:19:45
问题 So I have been looking around for some time now on a way to produce a variable tone on the iPhone using OpenAL, the issue being the Apple has deprecated the ALUT part of OpenAL that has the alutCreateBufferWaveform that would be perfect for this. I was wondering if anyone had any idea how to make a tone generator using OpenAL on the iPhone SDK. All I need is the ability to produce a certain frequency tone consistantly over and over again. This is a last resort so sorry if it sounds kind of