Re: coreaudio-api digest, Vol 2 #48 - 11 msgs
Re: coreaudio-api digest, Vol 2 #48 - 11 msgs
- Subject: Re: coreaudio-api digest, Vol 2 #48 - 11 msgs
- From: Mark Thomas <email@hidden>
- Date: Mon, 18 Feb 2002 23:17:49 +0000
- Organization: Coderus Ltd
Sorry for confusion
I'm trying to work out, when I create the Sound Channel, but specifying
which sound output component, How to pass in my existing flags.
My present code does
err = SndNewChannel ( &mSndChannel, sampledSynth, initStereo, NULL );
Which works great, by if I start specifying the sound component
err = SndNewChannel(&mSndChannel,
kUseOptionalOutputDevice,(long)outputDevice, nil);
(I cannot specify my sampledSynth, initStereo flags)
I can see that I can do a ReInitCmd for my newly created channel that I set
my initStero, so my specified output components works in Stereo mode. (Have
I got this right ???, or does initStereo mean for all output components i.e.
All speakers ???)
But how do I specify about the sampleSynth constant to this created Sound
channel, as I send the data to the channel using bufferCmds ????, as at the
moment I don't set anything in my CmpSoundHeader about which synthesizer to
use. As
http://developer.apple.com/techpubs/mac/Sound/Sound-97.html
Say that :-
"If you do not want to specify a specific data type, pass 0 in this
parameter. You might do this if you plan to use the channel to play a single
sound resource that itself specifies the sound's data type."
How does this relate to CmpSoundHeader structure. Is it the snthID member,
its talking about ???, As isn't Sound Resource, just one of this structures
(one of the SoundHeader structure's) with the sample data immediately
following the structure, as I understand.
Thanks in advance
Mark.
PS - I have this feeling that I might have misunderstood something :-(
>
Message: 10
>
Date: Mon, 18 Feb 2002 11:23:51 -0800
>
Subject: Re: Multiple devices
>
From: Jeff Moore <email@hidden>
>
To: CoreAudio API <email@hidden>
>
>
on 2/17/02 4:11 AM, Mark Thomas <email@hidden> wrote:
>
>
> How you define, what type of data you pass to channel i.e. Whether its :-
>
>
>
> sampledSynth = 5 /*sampled sound synthesizer*/
>
> squareWaveSynth = 1, /*square wave synthesizer*/
>
> waveTableSynth = 3, /*wave table synthesizer*/
>
>
>
> As I can see, that you can can do a ReInitCmd Sound Buffer Command, to set
>
> some of the initflags, but I don't immediately see for these,
>
>
I'm not at all certain what you are asking. The type of data you can pass to
>
a SndChannel is inherent in the mechanism you use to pass the data. For
>
instance, in a bufferCmd, the type of the data is specified in the header
>
pointed to by the SndCommand. In the case of SndPlay, the format is encoded
>
in the SoundHandle passed in.
>
>
Is this what you mean, or are you trying to figure out what those constants
>
are for?
>
>
--
>
>
Jeff Moore
>
Core Audio
>
Apple
_______________________________________________
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.