Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- From: Gregory Weston <uce@xxxxxxxxxx>
- Date: Mon, 23 Apr 2007 07:16:59 -0400
In article <1177303441.948092.106400@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Keith <kbwiley@xxxxxxxxx> wrote:
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?
Using a function which is gone. Not just deprecated, but gone. This
turns up in the first page of results of a search for "SndStartFilePlay"
on Apple's developer site.
<http://developer.apple.com/technotes/tn/tn1198.html>
Add "Carbon" as a search term and the above becomes the #1 result.
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.
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.
The sample code is fairly old, but mostly still valid and the reference
is current.
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
... in order to get the prototypes for those functions.
Not sure what docs you're looking at. The QuickTime Reference on my
screen right now tells me which header files to use.
(some must be included with a subdirectory),
That would be headers that are part of frameworks. Those are, again,
typically clearly indicated in the API references, so I reiterate my
curiosity as to what reference materials you're using.
.
- 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
- Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- From: Keith
- 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: NSPanel question
- Previous by thread: Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
- Next by thread: Resolving '~' (tilde) path?
- Index(es):
Relevant Pages
|