Re: playing mono files
Re: playing mono files
- Subject: Re: playing mono files
- From: William Stewart <email@hidden>
- Date: Fri, 10 Oct 2003 12:08:55 -0700
What you are trying to do with your call is to set the format of the
device to mono - which it rejects because it isn't a mono device...
You can use the Default (or HAL) output units to do this - they
interface to a device, you tell them you have mono data to give, and
they will parse that data to the device. There's an example of how to
use these in the example directory.. The only difference between the
DefaultOutput and the HAL output units, is the default output unit will
track the default device as it is changed by the user. The hal output
units will just attach themselves to which ever device you want to play
out too.
Bill
On 10/10/2003, at 10:39 AM, Stanko Juzbasic wrote:
Does anyone have experience how to make Core audio play mono files
WITHOUT HAVING TO CONVERT THEM TO STEREO ?
err = AudioDeviceSetProperty (audio_data.device, NULL, 0, false,
kAudioDevicePropertyStreamFormat,
sizeof (AudioStreamBasicDescription),
&(audio_data.format)))
always returns an error if
audio_data.format.mChannelsPerFrame equals 1.
How to make a workaround this problem? If I hardcode the former
parameter to be >= 2, than everything plays at double speed. Is there
an easy way to simply read each of the samples from a file twice?
Stanko
_______________________________________________
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.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.