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
5
votes
1 answer

How to link OpenAL on the command line (OS X)

I'm trying to compile a project which is using OpenAL on Mac OS X 10.7. If I would be using XCode I could link the OpenAL.framework, but in the directory /System/Library/Frameworks/OpenAL.framework/ theres no subdirectory called 'Libraries'. So…
jhasse
  • 2,379
  • 1
  • 30
  • 40
5
votes
1 answer

OpenAL: how to play multiple sounds at the same time and mix them?

I have used SDL_Mixer before, and it does this job correctly: when i play one sound with one single function call 10 times in sequence, all the sounds will get mixed together. But in OpenAL when i play a sound with alSourcePlay(), it just plays one…
Rookie
  • 1,242
  • 3
  • 17
  • 22
5
votes
4 answers

Real-Time Audio Loop Switching for iPhone

I'm trying to find the best way to play a seamless loop of audio, that the user can switch out for another at the shortest possible notice, with a decent number (30-150) of very short loops being available. Will OpenAL be sufficient for this, or do…
DanF
  • 589
  • 4
  • 23
5
votes
3 answers

Loading a .WAV file for OpenAL

I am trying to load .WAV files to be played with OpenAL. I am following an example I found on the internet, but it is acting strangely. Here is the code: struct RIFF_Header { char chunkID[4]; long chunkSize;//size not including chunkSize or…
Sus Among Us
  • 103
  • 2
  • 11
5
votes
1 answer

Python openAL 3D sound

I just started with python and I am making program for audio manipulation. I am trying to implement 3D sound with openAL in my python application, but I just can get it to work this is my code for 3D sound: from openal.loaders import…
Danial
  • 71
  • 1
  • 4
5
votes
0 answers

How to play multiple sounds in openal?

I'm trying to make a c++ program that plays 7 sounds together. To do this, I have 7 play button formed by Qt Designer 5.3.1 and whenever I clicked on a pushbutton, it loads the sound to the corresponding buffer. I'm using OpenAL to play the sound.…
Enes Altuncu
  • 449
  • 2
  • 7
  • 14
5
votes
1 answer

Listing all devices open AL does not work

I have found some examples that claims to list all output devices for audio using openAL, however I can only get them to list the currently selected device on OSX (Yosemite, Maverick). I am using a mac and have the default sound card (Built-in…
David Karlsson
  • 9,396
  • 9
  • 58
  • 103
5
votes
4 answers

OpenAL and Vista: Device is always 'Generic Software'

I'm writing the audio part of a game, and I'm using OpenAL. I want to use some extensions, but the tests always fail: TRACE: AudioManager - Sound device: 'Generic Software' TRACE: AudioManager - Enabling OpenAL extensions... TRACE: AudioManager -…
knight666
  • 1,599
  • 3
  • 22
  • 38
5
votes
1 answer

OpenAL: Will alSourcePlay() block current thread?

I could not find detailed explanation about this function. What I want to know now is that: Will this function block current thread? Or it just tells the device to start playing audio asynchronously any returns at once?
Andrew Chang
  • 1,289
  • 1
  • 18
  • 38
5
votes
1 answer

How to play looping sound with OpenAL on iPhone

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…
Chilly Zhong
  • 16,763
  • 23
  • 77
  • 103
5
votes
1 answer

How do I stream audio into OpenAL Sources?

I've just began working with OpenAL. I've successfully loaded in WAV files into it, and played them successfully. It was easy enough. Now, I need to be able to stream music into OpenAL rather than loading entire files into it. While this is good for…
Anonymous
  • 696
  • 8
  • 21
5
votes
2 answers

Openal - alGetError() always returns AL_INVALID_OPERATION

i'm running ubuntu 12.04 off a pendrive. I've installed openAL and alut my main is: #include #include #include #include #include #include // Buffers hold sound data. ALuint Buffer; using…
arp2600
  • 51
  • 1
  • 3
5
votes
3 answers

OpenAL Real Time Audio Processing from Microphone

I would like to write a cross-platform application that can process and play back microphone data in real time. Imagine as a proof of concept a chat room where people can talk to each other and apply filters to their voices. Is OpenAL appropriate…
Scott
5
votes
2 answers

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

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,…
happytrooper
  • 57
  • 1
  • 4
5
votes
4 answers

Best low latency audio API for an iOS Music Game? OpenAL, Cocoas2d Denshion, PhoneGap

I have been doing some research on the best way to program a music game for iOS similar to Tap Tap Revenge, Guitar Hero, Rock Band etc. Portability is a plus. This video explains that Open AL has some great ways of handling sounds, playing multiple…
KorinW
  • 279
  • 4
  • 10