Re: HALPlayFile not working
Re: HALPlayFile not working
- Subject: Re: HALPlayFile not working
- From: Jeff Moore <email@hidden>
- Date: Mon, 28 Oct 2002 11:55:10 -0800
That bit of sample code is for demonstrating native mode playback and
non-linear PCM playback. If you are trying to get anything more than
that out of it, you really ought to look at the DefaultOutput AudioUnit
samples. You'll be much happier in the long run.
The default configuration of that project is to do native mode playback
(there's a define in PFDevice.cpp for switching it to non-linear PCM
playback). Not all hardware supports native mode playback, particularly
the built-in hardware.
On Friday, October 25, 2002, at 10:42 AM, Dylan Ashe wrote:
All,
I'm a newbie to CoreAudio and I'm trying to get HALPlayFile to work.
I'm
running Jag with the latest Dev CD (including the Jag update) on a
QuickSilver with no additional sound hardware attached.
What I see is that HALPlayFile starts up and calls
SHCDeviceManager::GetDefaultOutputDevice() which has no errors and
returns
an AudioDeviceID of 10. Later that AudioDeviceID is used in
SHCDevice::SetIsMixable(). Unfortunately when it makes the call
AudioDeviceSetProperty(), it gets a result code of -536870206
(0xe00002c2).
If I make any other get or get properties to the device I get similar
results.
Anyone seen this and know what's going on?
Thanks,
Dylan
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.