This commit is contained in:
Steve Checkoway
2005-10-24 05:28:38 +00:00
parent 330f0a783c
commit a2c1b1443d
2 changed files with 67 additions and 67 deletions
@@ -68,8 +68,8 @@ CString RageSound_CA::Init()
try
{
mOutputDevice->AddPropertyListener(kAudioPropertyWildcardChannel,
kAudioPropertyWildcardSection, kAudioDeviceProcessorOverload, OverloadListener, this);
mOutputDevice->AddPropertyListener( kAudioPropertyWildcardChannel, kAudioPropertyWildcardSection,
kAudioDeviceProcessorOverload, OverloadListener, this );
}
catch( const CAException& e )
{
@@ -80,9 +80,8 @@ CString RageSound_CA::Init()
// XXX should this be nominalSampleRate or not?
Desc IOProcFormat( nominalSampleRate, kAudioFormatLinearPCM, 8, 1, 8, 2, 32,
kAudioFormatFlagsNativeFloatPacked);
const Desc SMFormat(44100.0, kAudioFormatLinearPCM, kBytesPerPacket,
kFramesPerPacket, kBytesPerFrame, kChannelsPerFrame,
kBitsPerChannel, kFormatFlags);
const Desc SMFormat( 44100.0, kAudioFormatLinearPCM, kBytesPerPacket, kFramesPerPacket, kBytesPerFrame,
kChannelsPerFrame, kBitsPerChannel, kFormatFlags );
try
{
@@ -119,7 +118,9 @@ CString RageSound_CA::Init()
LOG->Info( "Frames of stream latency: %lu", t );
}
else
{
LOG->Warn( "Stream reports no latency." );
}
mLatency = frames / 44100.0;
LOG->Info( "Frames of latency: %lu\n"
"Seconds of latency: %f", frames, mLatency );
@@ -224,8 +225,7 @@ void RageSound_CA::SetupDecodingThread()
THREAD_PRECEDENCE_POLICY, (int *)&po,
THREAD_PRECEDENCE_POLICY_COUNT );
if( ret != KERN_SUCCESS )
LOG->Warn("thread_policy_set(THREAD_PRECEDENCE_POLICY) failed: %s",
mach_error_string(ret));
LOG->Warn( "thread_policy_set(THREAD_PRECEDENCE_POLICY) failed: %s", mach_error_string(ret) );
}
/*