Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?



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.
.



Relevant Pages

  • Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
    ... to ditch that old Sound Manager code and use QuickTime to play ... I have tried to adopt Quicktime for a number of my media ... lot of the sample code is as old as or older than half a decade, ... header files to include or what the paths are to those header files ...
    (comp.sys.mac.programmer.help)
  • Re: The Big Tease
    ... Doing a quick search the only reference I have found is ... which has a link to a case decision that no longer resolves. ... should be asking why Accolade had to "reverse engineer" the header ... They could not just incorporate Sega's header files directly. ...
    (rec.games.go)
  • Re: data sizes in Keil RV ARM C compiler
    ... I will look into the header files as suggested. ... I wonder if there are pdf files for Keil ARM compiler users guide and ... reference. ...
    (comp.arch.embedded)
  • Re: Reference and #include
    ... include the header files. ... If you want to use those classes within another project, you'd reference the ... library you compiled them in because you are not supposed to use source code ... Kind regards, ...
    (microsoft.public.dotnet.languages.vc)
  • Re: SparseLib and c++
    ... hiding the header files, probably with s.th. ... cj5815@yahoo.com (Joe C) writes: ... >I include the references to the header files ... >Does anyone have an sample code I code look at? ...
    (sci.math.num-analysis)