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



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.

.



Relevant Pages

  • Re: SndStartFilePlay or Sound.h in XCode Carbon C++ app?
    ... I have tried to adopt Quicktime for a number of my media ... The sample code is fairly old, but mostly still valid and the reference ... header files to include or what the paths are to those header files ...
    (comp.sys.mac.programmer.help)
  • 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)
  • Re: Base64 Encoding Library
    ... Fletcher Glenn wrote: ... >> Please help me with sample code to use it if it is available. ... header files, and couldn't find it, though. ... Which part of the API? ...
    (comp.unix.programmer)
  • Re: Writing Reliable Native Code Sample (by Nat Frampton)
    ... The following header files? ... Paul T. ... I am new to CE.NET development and have found some sample code on the ... > Modile And Embedded Application Develipment Center site found at: ...
    (microsoft.public.windowsce.embedded.vc)