OK!!!
Thanks a lot!!!
The trick was really in opening the output one time only and closing it after the loop...I am so stupid...no the bit of code is like this:
Code:
if(!(psfout = soundout_open("out.wav")))
{
cout << "error opening output file\n" << endl; exit(-1);
}
    else cout << "file <out.wav> opened for writing" << endl;

for(int inte=0; inte<nn; inte++)
{
    char b[1];
    itoa(inte, b, 10 );
    char NAMEIN[8] = {b[0], 'i', 'n', '.', 'w', 'a', 'v'};

    buffer1= new float [def_len];

    if(!(psfin = soundin_open(NAMEIN, chans, sr)))
{
cout << "error opening output file\n" << NAMEIN << endl; exit(-1);
}
    else cout << "soubor " << NAMEIN << " uspesne otevren pro cteni" << endl;
    do {
        //sf_seek(psfout, 0, SEEK_END);
        count1 = sf_readf_float(psfin, buffer1, 1024);
        sf_writef_float(psfout, buffer1, count1);
        }
   while(count1);
   soundin_close(psfin);
   free(psfinfoin);
   free(buffer1);
}
    soundout_close(psfout);
    free(psfinfoout);
.
.
.
continue...

ad it works!!!
Great.

This was really helpfull...I owe you a big bottle of champaign (or something else)...any time you are in Czech Republic... k.nosal@email.cz

all the best

k

Last edited by shabbir; 1Apr2009 at 21:05.. Reason: Code block