CoreAudio on macintel no Sound...
CoreAudio on macintel no Sound...
- Subject: CoreAudio on macintel no Sound...
- From: Marc Van Olmen <email@hidden>
- Date: Thu, 21 Sep 2006 08:38:53 -0400
hi,
Now I got my macpro I just started converted my coreAudio application
to Intel.
I noticed I can't hear any sound. Just wondering if somebody else had
the same issues when they first ported their app.
was thinking maybe something to do with samplerate conversion on
intel machine:
UnsignedFixed ConvertFloat64ToUnsignedFixed(Float64 float64Value)
{
UnsignedFixed fixedValue;
// High 2 bytes is the integer part of the value
// Low 2 bytes is the floating point part of the value
fixedValue = ((UInt32)float64Value << 16) + ((UInt16)
((float64Value - floor(float64Value)) * 65536.0));
return fixedValue;
}
because I'm using Sound comressor to decompress my frames: so i have
to set it up..
fSoundOutputComponentData.numChannels =
outputCoreAudioFormat.mChannelsPerFrame;
fSoundOutputComponentData.sampleSize =
outputCoreAudioFormat.mBitsPerChannel;
fSoundOutputComponentData.sampleRate = ConvertFloat64ToUnsignedFixed
(outputCoreAudioFormat.mSampleRate);
fSoundOutputComponentData.sampleCount = 0;
fSoundOutputComponentData.buffer = NULL; ///CFSw
fSoundOutputComponentData.reserved = 0;
I tried converting the floats to littleendian because read somewhere
that Soundmanager only does big endian.
regards
marc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden