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

openal pitch shift

Can anyone tell me why the volume becomes lower when I make the pitch higher in openal? The higher the pitch, the lower the volume..... alSourcef(source, AL_PITCH, 1.2f); alSourcef(source, AL_GAIN, 1.0f); with this setting, the volume is still…
Xiu
  • 41
  • 1
  • 4
4
votes
1 answer

maximum number of OpenAL sound buffers on iPhone

I'm writing a sound library, for the iPhone, that uses OpenAL. The app generates a unique buffer id for each sound, during startup. The problem that I'm having is that OpenAL is unable to generate more than 1024 buffer ids. I would've thought that…
Greg
  • 41
  • 3
4
votes
1 answer

Turning an InputStream into a SeekableByteChannel

I am attempting to convert an InputStream to a SeekableByteChannel in order to stream in Open AL with LWJGL. The current code is as follows thanks to the help of a demo online: InputStream source = Thread.currentThread(). …
Alec French
  • 61
  • 1
  • 6
4
votes
1 answer

OpenAL output to multiple devices (Linux)

I'm developing a Linux application on a computer with two audio cards and I want to use both at once in OpenAL, each in its own context. When I call OpenAL's enumeration extension, alcGetString(NULL, ALC_DEVICE_SPECIFIER), to get a list of possible…
user403966
  • 101
  • 1
  • 4
4
votes
2 answers

Polyphonic sound playback

I need audio playback with these features: good performance (for game), pitch control, and ability to layer the same sample multiple times at the same time (polyphony). What would be a quick way to get this on the iphone sdk? Here's what I found…
Steph Thirion
  • 9,313
  • 9
  • 50
  • 58
4
votes
0 answers

LibGDX random OpenAL crash

before today everything was fine with the audio, and then today, from nowhere, my audio system just decided not to work ? When i start my app i get this message : AL lib: (EE) DoReset: Failed to initialize audio client: 0x887c0032 LwjglApplication:…
Pâris Douady
  • 833
  • 8
  • 18
4
votes
0 answers

Could not locate OpenAL library

I am currently writing a game using the Slick2D library, which uses LWJGL. My LWJGL version is 2.9.3. I am using Netbeans 8. I tried adding sounds to my game, for example a music track on the main menu. Problem is, I get this exception when I run my…
Fire Yoshi
  • 91
  • 5
4
votes
3 answers

OpenAL vs AVAudioPlayer vs other techniques for playing sounds

I know that OpenAL is fast library but it doesn't support any compressed audio format and it's not so easy to use... AVAudioPlayer is not so fast, but supports wide range file formats, as well as compressed formats like mp3. Also there is an…
Whirlwind
  • 14,286
  • 11
  • 68
  • 157
4
votes
3 answers

Is pitch and speed the same thing in audio programming context?

Pitch means "perceived frequency". Nice. But when I make pitch very low in OpenAL, sound plays a lot of times longer. If I make it very high, sound plays very short but with high frequency. For me, logically the consequence of making slower or…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
4
votes
1 answer

Can I play any Buffer only once at a given time?

From the OpenAL documentation: The basic OpenAL objects are a Listener, a Source, and a Buffer. There can be a large number of Buffers, which contain audio data. Each buffer can be attached to one or more Sources My problem is, that I…
dontWatchMyProfile
  • 45,440
  • 50
  • 177
  • 260
4
votes
1 answer

OpenAL tone generation on iPhone

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…
Sj.
  • 582
  • 1
  • 7
  • 21
4
votes
0 answers

Method for audio playback with known output latency on Windows

I have a C++ application that receives a timestamped audio stream and attempts to play the audio samples as close as possible to the specified timestamp. To do so I need to know the delay (with reasonable accuracy) from when I place the audio…
jensnielsen
  • 191
  • 1
  • 6
4
votes
1 answer

FFmpeg + OpenAL - playback streaming sound from video won't work

I am decoding an OGG video (theora & vorbis as codecs) and want to show it on the screen (using Ogre 3D) while playing its sound. I can decode the image stream just fine and the video plays perfectly with the correct frame rate, etc. However, I…
TheSHEEEP
  • 2,961
  • 2
  • 31
  • 57
4
votes
1 answer

OpenAL listener breaks attenuation

For the love of everything, I have been at this for three hours. OpenAL, when I move the listener, completely breaks the attenuation. I have NO idea why. If I do not change listener settings, it works fine. But unfortunately, that is not a viable…
Anonymous
  • 696
  • 8
  • 21
4
votes
3 answers

Where can I find sample uses of LWJGL?

I have seen the official demos on lwjgl.org but I would like to see some more tutorial level examples.
Liam
  • 19,819
  • 24
  • 83
  • 123