<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2734.1600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>First of all I'd like to thank to all the people
who are helping me.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm now working on the playback part of my
aplication. In order to do that, I've looked at the Playback
example.</FONT></DIV>
<DIV><FONT face=Arial size=2>In my aplication the incoming Audio is
mAudioIn.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But when my aplic. is running CLAM says "ASSERTION
FAILED". As it says, when I do the Start() the Object is not ready. Deploying
I've found that the Object is rightchannel.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Do I need some command I've
forgotten??</FONT></DIV>
<DIV><FONT face=Arial size=2>Here goes my code...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> CLAM::TSize nSamples =
mAudioIn.Size();<BR> CLAM::TData sampleRate =
mAudioIn.SampleRate();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> CLAM::Audio
signalLeftChannel;<BR> CLAM::Audio
signalRightChannel;<BR> <BR> signalLeftChannel.SetSize(
nSamples );<BR> signalLeftChannel.SetSampleRate( sampleRate
);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> cout<<"mono\n";</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> if ( mAudioIn.Channels() == 2
)<BR> {<BR> cout<<"stereo\n";<BR> signalRightChannel.SetSize(
nSamples );<BR> signalRightChannel.SetSampleRate( sampleRate
);<BR> }<BR> else if ( mAudioIn.Channels() > 2
)<BR> {<BR> std::cerr << "Only stereo or mono
files playback is supported! " <<
std::endl;<BR> exit(-1);<BR> }<BR> <BR> mAudioIn.Start();
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> if ( mAudioIn.Channels() == 1
)<BR> mAudioIn.Do( signalLeftChannel );<BR> else if
( mAudioIn.Channels() == 2 )<BR> mAudioIn.Do(
signalLeftChannel, signalRightChannel
);<BR> <BR> mAudioIn.Stop();<BR> <BR> const
CLAM::TData playbackSampleRate = 44100;<BR> const CLAM::TSize
frameSize = 1024;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> CLAM::AudioManager theAudioManager(
playbackSampleRate, frameSize );</FONT></DIV>
<DIV><FONT face=Arial size=2> theAudioManager.Start();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> CLAM::AudioOut
leftChannel;<BR> CLAM::AudioOut rightChannel;</FONT></DIV>
<DIV><FONT face=Arial size=2> CLAM::AudioIOConfig
audioOutCfg;<BR><BR> audioOutCfg.SetChannelID(0);<BR> leftChannel.Configure(audioOutCfg);</FONT></DIV>
<DIV><FONT face=Arial
size=2> audioOutCfg.SetChannelID(1);<BR> rightChannel.Configure(audioOutCfg);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2> leftChannel.Start();<BR> rightChannel.Start();
CRASH!!</FONT></DIV></BODY></HTML>