Open Source sound engine
Asked Answered
B

6

9

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

But now I'm starting to worry. The 2.2 SDK introduced AVFoundation. Using both SoundEngine from CrashLanding (for sounds) and AVAudioPlayer (for music), I found out SoundEngine behaves strangely when the only existing AVAudioPlayer is released (all sounds stop until a new AVAudioPlayer is initiated). Around the same time as the 2.2 SDK came out, the CrashLanding sample code was mysteriously removed from the ADC site. I'm worried there are more bad surprises to come.

My question is, is anyone aware of an Open Source alternative to SoundEngine? Maybe even a C++ library that uses OpenAL?

Bonucci answered 7/12, 2008 at 22:0 Comment(0)
B
2

Look at this library, but i don't know is this what you need.

Banksia answered 8/12, 2008 at 6:3 Comment(0)
P
2

The Kowalski project provides a data driven and portable sound engine that currently runs on iOS, OS X and Windows. The engine is released under the zlib license and provides positional audio, pitch control etc.

Permanency answered 27/1, 2011 at 11:42 Comment(0)
A
1

ObjectAL for iPhone

Clone it. Use it. Love it. Enjoy the freedom.

Aspic answered 18/8, 2010 at 18:51 Comment(0)
C
0

Why not just use AVFoundation? It's pretty simple to handle and nicely flexible - apart from if you need exact timing (says the Apple documentation - but I've been testing it fairly extensively and yet to find any significant practical issues) I don't see any reason for not leveraging it.

Clog answered 30/1, 2009 at 18:31 Comment(3)
Are you able to feed raw data into AVFoundation (AVAudioPlayer), for example if you wanted to generate and play a sine wave of a certain pitch?Almemar
There's no pitch or position control with AVFoundation.Bonucci
No, but you could generate the raw sine wave data?Almemar
M
0

AVFoundation lacks sound placement. This makes me sad.

Mythology answered 3/2, 2009 at 20:52 Comment(0)
G
0

I’ve written a simple sound engine around OpenAL. There are no position controls (I didn’t need them), but they would be trivial to add if you find the rest to your liking. And there is also some experimental sound code in the Cocos2D engine. It has both pitch and position controls and looks quite usable.

Greathearted answered 2/7, 2009 at 6:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.