Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- From: Keith <kbwiley@xxxxxxxxx>
- Date: 22 Apr 2007 21:44:01 -0700
On Apr 22, 3:25 pm, Jolly Roger <jollyro...@xxxxxxxx> wrote:
On 2007-04-21 12:01:10 -0500, Keith <kbwi...@xxxxxxxxx> said:
I'm getting a "not declared" error for SndStartFilePlay (guess it
isn't in Carbon.h), so I'm trying to include Sound.h (assuming that is
even the correct file, I'm not sure). I know the file exists. When I
add the CarbonSound Framework to my project, it includes a headers
directory that contains a CarbonSound.h and a Sound.h file. However,
all of the following attempts at header inclusions are unfound:
#include <Sound.h>
#include <CarbonSound.h>
#include <Carbon/Sound.h>
#include <Carbon/CarbonSound.h>
What on Earth and I doing wrong? I know for an absolute fact that I
used to be able to include Sound.h without any path hierarchy. What
has changed? I thought this would be simple.
This isn't a direct answer to your question, but you'd do well, in my
opinion, to ditch that old Sound Manager code and use QuickTime to play
sound files instead.
--
JR
Agreed. I have tried to adopt Quicktime for a number of my media
applications, but the docs are quite frustrating. For one thing, a
lot of the sample code is as old as or older than half a decade, so it
demonstrates exactly how they *don't* want you to do it anymore, and
then I can't find more up to date samples.
Another annoyance is that while the docs often describe the various
functions, they don't list anywhere (to my knowledge) what magic
header files to include or what the paths are to those header files
(some must be included with a subdirectory), in order to get the
prototypes for those functions.
.
- Follow-Ups:
- Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- From: Gregory Weston
- Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- References:
- SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- From: Keith
- Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- From: Jolly Roger
- SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- Prev by Date: Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- Next by Date: Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- Previous by thread: Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- Next by thread: Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- Index(es):
Relevant Pages
|