<!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><FONT face="Times New Roman" 
size=3>Hi,</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" 
size=3></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>I've got a 
problem with my LoadAudioFile and SaveAudioFile functions: it always 
produces an output of... 44 bytes, so sthing is wrong.<BR>I send you the 
actual code...<BR><BR>Audio 
mAudio;<BR><BR>MyCLAMApp::MyCLAMApp()<BR>{<BR><BR>}<BR><BR>MyCLAMApp::~MyCLAMApp()<BR>{<BR><BR>}<BR><BR>/////////////////////////////////////////////////////////////////////<BR>/// 
Mètodes 
programa<BR>///////////////////////////////////////////////////////////////////<BR><BR>MyCLAMApp::Do()<BR>{<BR> char 
fitxer_in[15];<BR> cout<<"\n>> MyCLAMApp.Do:: Introdueix el 
fitxer d'entrada: 
";<BR> cin>>fitxer_in;<BR><BR> LoadAudioFile(fitxer_in);<BR><BR> SaveAudioFile("sortida.wav");<BR> cout<<"\n>> 
MyCLAMApp.Do:: Sortint - Fitxer carregat!\n";<BR>}<BR><BR><BR>bool 
MyCLAMApp::LoadAudioFile(char fitxer_in[15])<BR>{<BR> AudioFileConfig 
afc;<BR> AudioFileIn 
mAudioIn;<BR><BR> afc.SetName("FitxerIn");<BR> afc.SetFilename(fitxer_in);<BR> afc.SetFiletype(EAudioFileType::eWave);<BR> afc.SetSampleRate(22050);<BR><BR> mAudioIn.Configure(afc);<BR><BR> mAudioIn.Start();<BR> mAudioIn.Do(mAudio);<BR> mAudioIn.Stop();<BR><BR> cout<<"\n>> 
LoadAudioFile :: File loaded";<BR><BR> return true;<BR>}<BR><BR>bool 
MyCLAMApp::SaveAudioFile(char fitxer_out[15])<BR>{<BR> AudioFileConfig 
afc;<BR> AudioFileOut mAudioOut;<BR> Audio 
mAudio;<BR><BR> afc.SetChannels(1);<BR> afc.SetName("FileOut");<BR> afc.SetFiletype(EAudioFileType::eWave);<BR> afc.SetFilename(fitxer_out);<BR> afc.SetSampleRate(22050);<BR><BR> mAudioOut.Configure(afc);<BR><BR> mAudioOut.Start();<BR> mAudioOut.Do(mAudio);<BR> mAudioOut.Stop();<BR><BR> cout<<"\n>> 
SaveAudioFile :: File saved";<BR><BR> return true;<BR>}<BR><BR>thanks in 
advance<BR>Daniel Casanovas</FONT><BR></DIV></FONT></BODY></HTML>