openal

Game Development Sound Frameworks

I'm working with a team that's building an engine for a variety of 2D and eventually 3D mini-games. The problem we're facing is a solid, cross-platform, sound API. Obviously, DirectX is out of the question due to our needs for cross-platform capabilities. SDL is nice, and works great, but let's face it SDL_Mixer is a bit limited in what ...

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. ...

Converting audio to CAF format for playback on iPhone using OpenAL

I am using the SoundEngine sample code from Apple in the CrashLanding sample to play back multiple audio files. Using the sample caf files included with CrashLanding everything works fine but when I try and use my own samplesconverted to CAF using afconvert all I get is a stony silence ;) Does anyone have settings for afconvert that wil...

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 out so far: There's no available libraries or sample code that does this, please show me ...

Open Source sound engine

When I started using SoundEngine (from CrashLanding and TouchFighter), I had read about a few people recommending not to use it, for it was, according to them, not stable enough. Still it was the only solution I knew of to play sounds with pitch and position control without learning C++ and OpenAL, so I ignored the warnings and went on w...

Copying frameworks into project?

When attempting to copy a framework into the Frameworks folder of my project in Xcode, I get the error Could not copy /Developer/Platforms/.../Frameworks/OpenAL.framework to /Users/.../OpenAL.framework I had accidentally copied the wrong framework with the same name into the project earlier and deleted it, but now I can't copy the ...

OpenAL: How does one jump to a particular offset more than once?

Imagine this function: void SoundManager::playSource(ALuint sourceID, float offset) { alSourceStop(sourceID); ALint iTotal = 0; ALint iCurrent = 0; ALint uiBuffer = 0; alGetSourcei(sourceID, AL_BUFFER, &uiBuffer); alGetBufferi(uiBuffer, AL_SIZE, &iTotal); iCurrent = iTotal * offset; alSourcei(sourceID, ...

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: restarting xcode; delete the framework and add it in again; cleaning the target; restart the...

What is the correct way to clean up when using PyOpenAL?

I'm looking at PyOpenAL for some sound needs with Python (obviously). Documentation is sparse (consisting of a demo script, which doesn't work unmodified) but as far as I can tell, there are two layers. Direct wrapping of OpenAL calls and a lightweight 'pythonic' wrapper - it is the latter I'm concerned with. Specifically, how do you cle...

How to program a real-time accurate audio sequencer on the iphone?

Hi... I want to program a simple audio sequencer on the iphone but I can't get accurate timing. The last days I tried all possible audio techniques on the iphone, starting from AudioServicesPlaySystemSound and AVAudioPlayer and OpenAL to AudioQueues. In my last attempt I tried the CocosDenshion sound engine which uses openAL and allows...

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. ...

OpenAL programming - links to get Started and playing WAV

I am trying to make some games and an important part of them is audio. So far, SDL_Mixer seems great but lacks the Mix_SetMusicPosition equivalent for channels. As a result, I tried OpenAL. But I have a problem with OpenAL too. OpenAL seems way more complex than SDL_Mixer. Besides, the ALUT function for loading Wave files is deprecated...

Which audio format would be the best?

I was using AVAudioPlayer to play multiple audio clips back to back but there was always a small silence between tracks and then i came to know of Finch, a library which uses OpenAL to play audio. with this the silence problem seems to be solved theoretically but then i found that it doesn't play m4a or any other compressed formats. Now...

iPhone SDK - OpenAL, 'Beat Box' style sound engine

How would one go about creating a 'beat box' style sound engine, where a series of sounds can be queued up ahead of time and during playback. These sounds need to play back without any gaps or hiccups though. I've looked into OpenAL and have attempted to use the alSourceQueueBuffers() to create a source with a series of pre-buffered cl...

iPhone: how to let the music play for an application using OpenAL?

I'm writing an iPhone app that uses OpenAL. When the application starts, the music playing in background stops. The music actually stops playing when I initialize the OpenAL library. My question is, is there any way to use OpenAL while letting the background music play? ...

Playing Audio on the iPhone

I want to play prerecorded audio for users in an iPhone application. Is the best way to play this audio to use openAL? Is there any other way that might be beneficial for what I want to accomplish? Thanks! Joe ...

Access UIButton from parent class while using function from another object class on the iPhone

I'm using openAL to play audio files. I'm using a uibutton to play an audio file. I access this play method that loads and plays the audio file from an object called oalPlayback. I have connected this button and method in interface builder by dragging the object into the nib /xib window. I then shift drag the button to the object to a...

Sampling audio levels with OpenAL

Is it possible to sample the audio playback volume in real-time with OpenAL? Specifically, I'm using OpenAL in the iPhone SDK. ...

Making a real-time audio application with software synthesizers

I'm looking into making some software that makes the keyboard function like a piano (e.g., the user presses the 'W' key and the speakers play a D note). I'll probably be using OpenAL. I understand the basics of digital audio, but playing real-time audio in response to key presses poses some problems I'm having trouble solving. Here is t...

OpenAL Real Time Audio Processing from Microphone

Hello. 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 for this? If not, can someone provide an alternative? Additionally, if anyone ca...