OpenAl + mp3 (or similar)

Nibbie
Posts: 3
Joined: 2009.10
Post: #1
Hi everyone,

i'm new here and i apologize for any error of netiquette... pls tell me eventually.
and for my english so! Smile

ok now i'll try to explain my problem:

i'm developing a little framework to execute audio file on the iphone.
i'm using AudioToolBox to open audio files and then i use OAL to execute audio datas.

Until yesterday i had always opened only caf files... but now i need to open mp3 files or something similar (compressed).

Ok, sorry for loooong introduction...

i've tried to open an mp3, i storage my data, but when i play the sound with openAL it is not the same sound...

it's because the data is compressed? i need to convert it? and if yes, is there a method to open an mp3 without convert the data??

THANK YOU VERY MUTCH!!!! Grin

pls help me!!!! Grin

majin
Quote this message in a reply
Moderator
Posts: 3,577
Joined: 2003.06
Post: #2
majin Wrote:it's because the data is compressed? i need to convert it? and if yes, is there a method to open an mp3 without convert the data??

Yes, look at AVAudioPlayer to play compressed audio on iPhone.

OpenAL doesn't work with compressed audio, so you'd have to decompress it yourself.
Quote this message in a reply
Nibbie
Posts: 3
Joined: 2009.10
Post: #3
AnotherJake Wrote:Yes, look at AVAudioPlayer to play compressed audio on iPhone.

OpenAL doesn't work with compressed audio, so you'd have to decompress it yourself.

thank you, i'll try Smile
Quote this message in a reply
Nibbie
Posts: 3
Joined: 2009.10
Post: #4
if someone else have this problem, i've found this link that can help:
http://www.wooji-juice.com/blog/iphone-o...adpcm.html

i've not applied this features but it's interesting.
Quote this message in a reply
Moderator
Posts: 3,577
Joined: 2003.06
Post: #5
That's an interesting and helpful link. Thanks for sharing Smile
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  The ps2 Kinetica or a similar game to this would be awesome!. HighRowBeatz 0 1,021 May 12, 2014 05:22 PM
Last Post: HighRowBeatz
  Does TinyXML (or something similar) work on the iPhone? riruilo 7 5,430 Sep 23, 2009 01:59 PM
Last Post: riruilo
  Online high scores and similar Madrayken 12 6,447 Aug 6, 2009 01:54 PM
Last Post: morten795