Re: file format for sound
Re: file format for sound
- Subject: Re: file format for sound
- From: Jim McGowan <email@hidden>
- Date: Tue, 09 Aug 2011 17:44:28 +0100
I don't do any iOS development, only Mac, so I can't confirm that for you (i'm sure someone on the list will), but I would be surprised if a basic unit like that was missing on iOS. On Mac it is manufacturer: kAudioUnitManufacturer_Apple, type kAudioUnitType_Generator and subtype kAudioUnitSubType_AudioFilePlayer. Maybe searching for these constants in the docs will help out.
If it doesn't exist on iOS, perhaps the quicktime APIs would play your mp3?
Jim
On 9 Aug, 2011, at 17:36 , Bob Sabiston wrote:
> I have been looking into this a little bit, and I can't find any mention of an AudioFilePlayer unit on iOS. It is not listed in the list of audio units available?
> Bob
>
>
> On Aug 8, 2011, at 4:17 PM, Jim McGowan wrote:
>
>> I just had a quick glance at the MixerHost code, and it looks like it is reading the files into sample buffers and using a render callback to get the samples. If you are just wanting to playback a single music file for the game's background music, it would probably be simpler to use an AudioFilePlayer unit.
>>
>> Jim
_______________________________________________
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