playing mono files
playing mono files
- Subject: playing mono files
- From: Stanko Juzbasic <email@hidden>
- Date: Tue, 14 Oct 2003 16:06:30 +0200
Dear Holger,
Nice to read from you. Your name does not sound unfamiliar to me. Do
you happen to be the author of PlayAFLite?
I have it in my sample code. I think it is a marvelous piece of
educational code - I wish if only there were more meaningful sample
apps like this one.
Most of other samples that I ran across - I regret to say - are either
clear but useless, or abuse CoreAudio for the sake of evangelizing
Cocoa, Java, QuickTime, Objective C++ or whatsoever.
Unfortunately, the API is seemingly being developed faster than it can
be documented. So I ran into problems in building PAFLite. Prior to
upgrading to Dec2002 DevTools, the part about MagicCookie (BTW, what
on Earth is this ?), did not build, so I commented it out.
Now that I upgraded DevTools and GCC, it produces even more errors,
which makes me helpless. The more I read, the deeper it drags me into
system specific stuff:
======================================
main.c:74: parse error before `comp'
main.c:75: `comp' undeclared (first use in this function)
main.c:75: (Each undeclared identifier is reported only once
main.c:75: for each function it appears in.)
main.c:118: parse error before `result'
main.c:124: `result' undeclared (first use in this function)
main.c:135: warning: control reaches end of non-void function
main.c:165: parse error before `magicCookieSize'
main.c:168: `magicCookieSize' undeclared (first use in this function)
=============================================
If you have an idea what this could be all about, I'd be most grateful
for your reply.
Elsa, I'd have to buy another mac and install the former version of
DevTools, so I can track changes in the API.
Best regards,
Stanko
On Tuesday, October 14, 2003, at 12:08 PM, Holger Hvrich wrote:
Hi Stanko,
you might have a look at the channel map capabilities of the audio
converter (see PlayAudioFileLite example on Apples CoreAudio Website)
But honestly this is more a guess than a hint...
Regards,
Holger
On Friday, Oct 10, 2003, at 19:39 Europe/Berlin, 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.
----------------------------------------------------------------------
-
Holger Hoerich
Research Engineer Coding Technologies
phone: +49 (0) 911 92891 -28 Deutschherrnstr. 15-19
fax: +49 (0) 911 92891 -99 90429 Nuernberg, Germany
mailto:email@hidden http://www.CodingTechnologies.com
_______________________________________________
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.