Questions tagged [openal]

OpenAL (Open Audio Library) is a cross-platform audio API that allows for efficient rendering of environmental, 3D positional audio.

OpenAL (Open Audio Library) is a cross-platform audio API that allows for efficient rendering of environmental, 3D positional audio.

OpenAL utilizes an extension mechanism in order to allow vendors to provide additional functionality.

It is often in games through extensions such as LWGJL.

594 questions
4
votes
3 answers

OpenAL playback captured audio data c++

I am trying to create a voice chat program using OpenAL. The networking side of things seems to be ok but I'll take advice on that =] The problem I am having at the moment is trying to playback captured audio data from the mic. I followed the code…
Ralara
  • 559
  • 4
  • 19
4
votes
2 answers

Sound Effect Library/Extension for OpenAL (running on iOS)?

I want to do some DSP effect processing, create effect like flanger, echo, etc. Could it be done via OpenAL? Or should I use enterely different framework/library?
Geri Borbás
  • 15,810
  • 18
  • 109
  • 172
4
votes
1 answer

Clarification on OpenAL Listener Orientation

What is the purpose of the first vector in the listener orientation? The tutorials say that the two vectors are 'at' and 'up', but shouldn't setting the position already determine where 'at' is? I'm also confused why all of the tutorials set the…
AGuyInAPlace
  • 359
  • 4
  • 19
4
votes
2 answers

OpenAL buffer update in real-time

I'm working in iOS and have a simple OpenAL project running. The difference to most openAL projects i've seen is that im not loading in a sound file. Instead I load an array of raw data into the alBufferData. Using a couple of equations I can load…
Simo
  • 2,172
  • 3
  • 19
  • 23
4
votes
1 answer

OpenAL initializing impairs performance of my iPhone game

I have a bad performance problem with OpenAL in my iPhone game. My game runs smoothly with 60fps but when I initialize OpenAL the game begins to jerk. This is my initialisation code: ALCdevice* device = alcOpenDevice(NULL); ALCcontext…
Andreas Illiger
  • 263
  • 1
  • 4
4
votes
2 answers

Audio Library for Windows, Mac & iOS? OpenAL/OpenSL

I write an Desktop/iOS Game with OpenGL and want to play audio files (mp3 or wav). I've worked already with CoreAudio and AudioQueues, but now I need something that works also with Windows (and maybe Linux). I've seen so far: OpenAL OpenSL I only…
Constantin
  • 8,721
  • 13
  • 75
  • 126
4
votes
5 answers

AudioToolbox/OpenAL ExtAudioFile to play compressed audio

I'm currently using OpenAL to play game music. It works fine, except that it doesn't work with anything except for raw WAV files. This means that I end up with a ~9mb soundtrack. I'm new to OpenAL, and I'm using code directly from Apple's example…
Greg
  • 9,068
  • 6
  • 49
  • 91
4
votes
2 answers

replacement for alutLoadWAVFile

The following function calls are deprecated in OpenAL 1.1, what is a proper replacement?? THe only answer i found in google was "write your own function!!" ;-) alutLoadWAVFile alutUnloadWAV
Saideira
  • 2,374
  • 6
  • 38
  • 49
4
votes
1 answer

Playing OpenAL sounds from background thread

In my iOS app I wan't to play sounds using OpenAL. I have AudioManager class, responsible for sound-management (singleton). All sound sources & buffers are initialized when it is created (on the first instance call). So to play sound all I need - is…
kpower
  • 3,871
  • 4
  • 42
  • 62
4
votes
1 answer

openAL - alBufferData and AL_INVALID_VALUE

i have a problem. When I buffer data, I get the 40963 error back, meaning AL_INVALID_VALUE. The programmers guide (http://connect.creativelabs.com/openal/Documentation/OpenAL_Programmers_Guide.pdf) says data is either null, buffer in use or size…
KaiserJohaan
  • 9,028
  • 20
  • 112
  • 199
4
votes
1 answer

Configuring OpenAL for Visual Studio 2008

I've been trying to build a sample code given with OpenAL SDK in Visual Studio 2008. I am getting the following error log: 1>------ Build started: Project: OpenALTut, Configuration: Debug Win32 ------ 1>Linking... 1>Capture.obj : error LNK2019:…
Rahul
  • 41
  • 2
4
votes
3 answers

OpenAL - how to play unattenuated sound effects?

I'm using OpenAL in my iPhone project to create sounds that attenuate when farther away from the listener. However - I also want to play some sound effects that shall not be attenuated by distance. So far I solved that by using stereo sounds, which…
Mat
  • 41
  • 1
  • 4
4
votes
1 answer

Does OpenAL support 5.1 output on Mac OS X?

I'm in the process of porting an application from Windows to Mac OS X. It is using OpenAL for handling the sound, but I'm getting a strange behavior in the initialization of the sound engine on Mac OS X (the code is running on a MacBook Pro). Here…
Sylvain Defresne
  • 42,429
  • 12
  • 75
  • 85
4
votes
1 answer

openAL streaming & interruptions

I made an iphone application which uses OpenAL to play many sounds. These sounds are in mp3, quite heavy (more than 1mn)and I stream them (2 buffers per sound) in order to use less memory. To manage interruptions, I use this code : In…
Klem
  • 529
  • 1
  • 4
  • 18
4
votes
1 answer

iOS: Pitch Shifting & Piping output from OpenAL into a buffer

I have recently spotted that it is possible in iOS to use OpenAL to pitch shift. I am looking at Hollance's sound bank player. it takes in 15 or so piano notes spattered through the range, and plays any note by figuring out which sample it is…
P i
  • 29,020
  • 36
  • 159
  • 267