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

iPhone - openAL stops playing if I record with AVAudioRecorder

this is an iPhone-related question: I use openAL to play some sound (I have to manage gain, pitch, etc.). I want to record what I'm playing and I use AVAudioRecorder but when I "prepareToRecord" openAL stops to play audio. What's the problem? Here…
Oscar Peli
  • 1,108
  • 2
  • 11
  • 18
0
votes
0 answers

play sound bytes with java

I want to write something like a music stream service with java. The db stuff and other logic is not the problem, but streaming something itself seems to be a challenge. My idea is the following: After the client requests to stream one file, the…
T_01
  • 1,256
  • 3
  • 16
  • 35
0
votes
1 answer

Cannot get OpenAL to play sound

I've searched the net, I've searched here. I've found code that I could compile and it works fine, but for some reason my code won't produce any sound. I'm porting an old game to the PC (Windows,) and I'm trying to make it as authentic as…
0
votes
1 answer

OpenAL causing leaks in my iPhone game

I am integrating OpenAL in my iPhone game from code I found in this post, but the compiler gave me an error on this line of code: unsigned char *outData = malloc(fileSize); so I changed it to this: unsigned char *outData = (unsigned char*)…
0
votes
1 answer

Open AL Null Pointer Exception

I'm attempting to do my first test with open AL and I keep getting a null pointer error as per below: Exception in thread "main" C:\Users\Rob\Desktop\Programming Workspace\Android\RPG Test…
0
votes
0 answers

OpenAL set Fixed volume

i'm using OpenAL to play background music and sound effects in a game, the code to play background music is this; - (void) playSoundBack { alGenSources(1, &sourceIDBack); NSString *audioFilePath = [[NSBundle mainBundle] pathForResource:@"music"…
user31929
  • 1,115
  • 20
  • 43
0
votes
3 answers

Getting an audio device with OpenAL

I'm trying to use OpenAL for an IOS game I'm working on, but having an issue opening the audio device. Specifically, when I call the function alcOpenDevice(NULL), I get 'NULL' in return. This is causing issues, of course, but I can't tell what I'm…
Talidos
  • 1
  • 1
  • 4
0
votes
0 answers

OpenAL offset race condition

I'm using OpenAL on iOS and seem to be getting some kind of race condition where rapid alternating calls to get and set AL_BYTE_OFFSET end up resetting the value to 0. This is all done while the audio source is playing. + (void)…
JohnW
  • 51
  • 5
0
votes
2 answers

OpenGL audio waveform rendering

I am trying to figure out how to render a waveform from an audio file. Can I do that using OpenGL+OpenAL? The main idea is that I need to draw a 3D scene (like a rollercoaster) based on audio data.
coldrising
  • 11
  • 4
0
votes
1 answer

python ImportError using PyAL with kivy

To be able to use 3D sound, I am trying to use the OpenAl sound library (PyAL) in kivy. Here's the python header of the main.py: #!/usr/bin/env python # -*- coding: utf-8 -*- import kivy kivy.require('1.7.2') from kivy.app import App from…
Boffin
  • 1,197
  • 2
  • 11
  • 18
0
votes
1 answer

OpenAL: Error when setting source type

I initialize my OpenAL source in sequence like this: ALCcontext *_mContext; ALCdevice *_mDevice; ALuint _mSourceID; alcOpenDevice(NULL); _mContext = alcCreateContext(); alcMakeContextCurrent(_mContext); alGenSources(1,…
Andrew Chang
  • 1,289
  • 1
  • 18
  • 38
0
votes
2 answers

OpenAL play sound, dealloc one instance, all the other's sound dispeared?

I use OpenAL to play sound from network streaming in my NPAPI plugin (browser plugin). When I open more than one browser's tab, I close one of the tabs, the others' sound also dispeared. Anyone could give me some help? Or anyone can give me some…
Alpha Law
  • 13
  • 3
0
votes
1 answer

Compensating For Value Change While Changing Value?

i'm attempting to add my own continuous pitch modulation (vibrato) to my OpenAL object by assigning the sound's pitch to the path of a sine wave. this is my callback method, which is repeating every 1/30 of a second, as well as the getter and…
Chunky Chunk
  • 16,553
  • 15
  • 84
  • 162
0
votes
1 answer

{OpenAL(+FFmpeg)} How to queue variable size buffer due to ogg format?

(First of all, I may feel sorry about my poor English as it's not my native language.) I use FFmpeg to decode some audio file and play it with OpenAL by "stream"(i.e."queue" and "unqueue" function of OpenAL). When I use my program to play .ogg file,…
0
votes
1 answer

Java - LWJGL - OpenAL - Understanding some code

Hell coders , I am currently studying OpenAL with LWJGL and I can not understand what these lines of code do(the comments represent what I think they are doing , may you please tell me the right things? I have read the Javadocs and did not…
user3029101
  • 317
  • 1
  • 3
  • 13