Re: Newbie trying to play mp3 files instead wav files
Re: Newbie trying to play mp3 files instead wav files
- Subject: Re: Newbie trying to play mp3 files instead wav files
- From: "Ignacio Enriquez" <email@hidden>
- Date: Tue, 28 Oct 2008 00:24:11 +0900
Thanks William.
It's been 3days, and I have been comparing the differences between
SpeakHere's AudioPlayer Class and AQPlay(from
/Developer/Examples/CoreAudio)
And have some comments and questions.
The main difference is the use of CAStreamBasicDescription instead of
AudioStreamBasicDescription in AQPlay.
CAStreamBasicDescription is not a Predefined Class. And Is to big for
me to understand it at this moment.
So my question is
Is Possible to manage mp3 files with AudioStreamBasicDescription structures?
if YES, how can I do it? (sorry to ask this, but I really need a hand please)
If NO, adding CAStreamBasicDescription to my iPhone program will be a
good idea? (I mean using CAStreamBasicDescription in my iPhone program
project)
I actually want to be able to play, resume, stop, rewind and
fastforward some music. (which I am doing but only for WAV files.)
In my program I have like 20 5minutes long songs so, is indispensable
to be able to play compressed files as mp3, as you can understand.
Thanks in advance.
Ignacio.
2008/10/25 William Stewart <email@hidden>:
> The current Speak Hear code doesn't play compressed data.
>
> AQ Play (/Developer/Examples/CoreAudio) has code that deals correctly with
> this, so in the meantime you can use this as a guideline
>
> On Oct 24, 2008, at 1:51 AM, Ignacio Enriquez wrote:
>
>> Hi everyone.
>>
>> I am very new to CoreAudio API, and trying to make my program play
>> *.mp3 files instead *.wav files.
>> As you know a *.wav file is like 10 times bigger than a mp3, so that's
>> my principal reason.
>>
>> I am basically using iPhone's sample code. SpeakHere Classes.
>>
>> At first I thought it would be enough to change the 3rd parameter of
>> AudioFileOpenURL function from "kAudioFileCAFType" to
>> "kAudioFileMP3Type", but it seems that this is just for opening the
>> file. So the mp3 file is not being played.
>>
>> I wonder what other changes do I need to do in order to accomplish
>> mp3 files being played?
>>
>> Thanks in Advance.
>> Ignacio.
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Coreaudio-api mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden