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

How to get length (duration) of a source with single buffer in OpenAL?

I'm migrating from FMOD to OpenAL and I can't find an analogue of the FSOUND_Sample_GetLength() function, which returns the length of the sample in samples (it doesn't take frequency in consideration)... I get OpenAL buffer name from…
Ryan
  • 1,451
  • 2
  • 27
  • 36
3
votes
0 answers

OpenAL Segmentation Fault Before Main

I'm writing a game engine in C++ that utilizes SDL for graphics and OpenAL for audio. I'm developing on Windows XP compiling with MinGW and debugging with GDB. I discovered the problem when I ran the debugger and, before even reaching main(), the…
Electo
  • 520
  • 5
  • 7
3
votes
0 answers

"* Missing (or bad) C library: OpenAL32" - from stack build for a haskell project

I have a stack project using Sound.ALUT. The project was building fine on both Windows and Mac before I added sound. (Sound.ALUT is a library layered over OpenAL.) Got thinks working on MacOS but those changes broke the Windows build. Still…
3
votes
1 answer

OpenAL problem - changing gain of source

I've recently been working on porting my game to be cross-platform, and decided to go with OpenAL for my cross-platform audio engine. I have 16 "channels" (OpenAL sources) for playing up to 16 sounds concurrently. To play a sound, I switch which…
Vern Jensen
  • 3,449
  • 6
  • 42
  • 59
3
votes
1 answer

iPhone app using openAL works in simulator, but not on device

I added the openAL framework to my app and I am using the sound engine that is in the demo CrashLanding. It works just fine on the simulator, but when I build it for my device, I get errors. It looks like the framework isn't added. I've tried:…
Bryan Cimo
  • 1,268
  • 1
  • 19
  • 34
3
votes
2 answers

Press a button it makes a sound. Hit button fast and sound playback pops and clicks

I have 6 buttons that each play an audio sample from a .caf file. If I press a button the sound plays fine, if I wait for it to end and press it again it plays fine but if I press the button fast then the sound will pop and click before playing. I…
GeoffCoope
  • 952
  • 9
  • 20
3
votes
0 answers

openAL looping cycle error

im trying to play a looping sound in openGL/SDL with openAL but when im calling it its just looping infinitely and its stuck at the start ive got no idea how to fix this so i came here hoping some1 knows heres my code of how im calling…
Makenshi
  • 993
  • 3
  • 15
  • 28
3
votes
0 answers

OpenAL. MACOS. Capture and rendering from the same device (bluetooth headset)

Good day! Our application should play the sound that came from the network from the server and collect sound from the user through a microphone and send it back to the server. For these purposes (render and capture) we use OpenAL. Everything works…
Kirill Chernikov
  • 1,387
  • 8
  • 21
3
votes
2 answers

Streaming Data to Sound Card Using C on Windows

As part of a university project I have to do some signal processing and would like to output the results using the PC sound card. The software has to be written in C and needs to work with Windows (preferably 7 and XP). I have found code examples…
sheepez
  • 986
  • 1
  • 10
  • 26
3
votes
1 answer

How to play a sound instantly after another sound ended?

I cant ensure this by checking if the sound has stopped in my program because the sounds are handled in different thread, isnt that right? So the problem comes when i want to be 100% sure that once a sound has stopped from playing, another sound…
Rookie
  • 119
  • 4
3
votes
1 answer

OpenAL alBufferData returning unknown error when called

I am trying to get OpenAL to play a simple audio clip for a game engine. I have not been able to find a good library to process to WAV files, so I have decided to try and decode them myself. I have been having some issues with this, and am rewriting…
3
votes
2 answers

How to export sound from timeline of sounds on iOS with OpenAL

I'm not sure if it's possible to achieve what I want, but basically I have a NSDictionary which represents a recording. It's a timeline of what sound id was played at what point in time. I have it so that you can play back this timeline/recording,…
c0dec0de
  • 373
  • 1
  • 4
  • 12
3
votes
1 answer

OpenAL and Popping Artifacts

I am using OpenAL for a music app for iPad. It has worked fine before, but now, after updating my device to iOS 4.3, there are popping/crackling noises on playback. They become apparent when multiple samples are played (i.e. chords), and happen at…
obsoleteModel81
  • 413
  • 2
  • 6
  • 13
3
votes
1 answer

OpenAL synchronization

I'm new to audio programming so excuse me if I'm not using the right terms... I have two streaming buffers that I want to have playing simultaneously completely synchronized. I want to control ratio of blending between the streams. I'm sure it's as…
Aleks
  • 1,177
  • 10
  • 21
3
votes
1 answer

Offline audio recording on iOS with OpenAL

I'm using openAL to play sound samples at specific intervals and I want to export this to file (be it caf or aac or whatever). How can I do this with OpenAL without having my samples played in real time through the speakers/headphones?
Matthew
  • 517
  • 7
  • 15