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
7
votes
3 answers

How do you completely remove and release memory of an OpenAL sound file?

I have a small level based iPhone app. I need to load and release sound files for each level. Everything works fine with my openAL SoundManager except releasing sounds. At first, when I remove a sound, it seems to do what it is meant to do – it…
Jonathan
  • 621
  • 1
  • 11
  • 27
7
votes
1 answer

Is it possible to play a gapless looped WAV file without stuttering?

I have a requirement for perfect gapless looped audio in a BlackBerry 10 app. My loops are stored as WAV files. The method I'm using for playing them is: Create a buffer for the WAV file using alutCreateBufferFromFile which returns a…
donturner
  • 17,867
  • 8
  • 59
  • 81
7
votes
1 answer

Reliable sound API in Java for simple digital samples playback

Is there a good recipe to get decent, reliable digital sampled sound playback in Java? My list of requests is pretty short: Load digitized samples in memory (for example, from resouces bundled in jar) from something like .wav files Play them in…
GreyCat
  • 16,622
  • 18
  • 74
  • 112
7
votes
4 answers

Getting notified when a sound is done playing in OpenAL

I'm using OpenAL on iPhone to play multiple audio samples simultaneously. Can I get OpenAL to notify me when a single sample is done playing? I'd like to avoid hardcoding the sample length and setting a timer.
Mel
  • 2,269
  • 1
  • 18
  • 18
6
votes
3 answers

OpenAL source continues playing after stopped and deleted

Our ipad application plays a bunch of OpenAL sources in parallel, one for each ongoing touch. The sources are created and started on touchesMoved, and stopped on touchesEnded or touchesCancelled. Things seem to work fine, except for a bug where…
Johan Bilien
  • 412
  • 2
  • 12
6
votes
2 answers

Hardware accelerated audio decoding with OpenAL

Is it possible to use the iPhone's hardware accelerated decoding of mp3s and AAC when using the OpenAL library? I suppose there are two possible approaches if this is possible. iPhone specific OpenAL extensions. iPhone APIs to decode audio into raw…
deft_code
  • 57,255
  • 29
  • 141
  • 224
6
votes
0 answers

Cross platform OpenAL SFX

My engine is built to run and OSX, Windows, Linux, Android and iOS; Im using OpenAL to handle 3d sounds. On OSX and iOS I'm using the default library that comes for the platforms and for the rest Im using OpenAL-soft. With OpenAL-soft for sound…
McBob
  • 1,011
  • 2
  • 13
  • 25
6
votes
1 answer

WaveData LWJGL3

I am trying to load sound in LWJGL 3 according to this tutorial ( http://wiki.lwjgl.org/index.php?title=OpenAL_Tutorial_1_-_Single_Static_Source ), but I found a problem that the class WaveData, which was most probably in the older version of LWJGL…
Samuel Kodytek
  • 1,004
  • 2
  • 11
  • 23
6
votes
1 answer

Convert 16 bit stereo sound to 16 bit mono sound

I'm trying to convert 16 bit stereo sound from a WAVE file to 16 bit mono sound, but I'm having some struggle. I've tried to convert 8 bit stereo sound to mono and it's working great. Here's the piece of code for that: if( bitsPerSample == 8 ) { …
grimgrom
  • 730
  • 1
  • 9
  • 18
6
votes
1 answer

OpenAl pitch values for particular musical notes in an octave

I have an OpenAl sound engine on my iPhone app. When I play a sound that I have loaded, I can control it's pitch. In OpenAl a pitch set to 1.0 has no effect. If you double it to 2.0, it plays the note 1 octave higher(12 semitones). If you halve it,…
Jonathan
  • 621
  • 1
  • 11
  • 27
6
votes
0 answers

Time Stretching and Pitch shifting with IOS

In short: How to do Time Stretching and Pitch Shifting in iOS? In Detail: What am i trying to do? The app will show the video thumbnails to the users to select a certain range of frames from the video file. I have to Apply the ramp slow Mo,…
2vision2
  • 4,933
  • 16
  • 83
  • 164
6
votes
1 answer

How can I get the current sound level of the current audio output device?

I'm looking for a way to tap into the current audio output on a Mac, then return a value representing the current sound level. By sound level, I mean the amount of noise being generated by the output. I'm NOT asking how to get the current volume…
Pétur Ingi Egilsson
  • 4,368
  • 5
  • 44
  • 72
6
votes
1 answer

OpenAL making glitch when looping sound

I'm playing sounds for my game with openAL and I have some problems that sometimes a small glitch is played while looping. Also without looping I get a small pop...sometimes but not all. I think it has something to do with the buffer being a little…
broch
  • 433
  • 3
  • 15
5
votes
1 answer

With OpenAL, is setting AL_PITCH and AL_GAIN expensive?

Whenever I play a sound effect I use: alSourcei(sources[index], AL_BUFFER, 0); alSourcei(sources[index], AL_BUFFER, bufferID); alSourcef(sources[index], AL_PITCH, 1.0); alSourcef(sources[index], AL_GAIN, 1.0); would it be a significant optimization…
Ryan
  • 5,883
  • 13
  • 56
  • 93
5
votes
2 answers

Which API to play audio from a buffer in ios and osx?

I would like to do this very simple thing: playing PCM audio data from memory. The audio samples will come from sound-synthesis algorithms, pre-loaded sample files or whatever. My question is really about how to play the buffers, not how to fill…
Jem
  • 2,255
  • 18
  • 25
1 2
3
39 40