|
atza
Posts: 69
|
 |
« Reply #3 on: 30 Sep '11 - 19:27 » |
Quote
|
Actually,I was testing it in winamp,and it turned out that winamp was set somehow to reproduce wav and wma at different levels... So,it was my mistake not to notice this before,but on the other hand who would have thought...
But other issue arrives... Now decoding an midi channel I get wav and mp3 files all right,but wma contains some crackling noise every few sec.. Now I now its hard to give an answer ,but maybe that's a known issue to someone here?
BASS_Init(-1, 44100, 0, Handle, nil)
chan := BASS_MIDI_StreamCreateFile(FALSE,PChar(sourcefilename),0,0,0 or BASS_STREAM_DECODE or BASS_MIDI_DECAYEND or BASS_SAMPLE_FLOAT,0);
if format='Wma' then
wmaencoder:=BASS_WMA_EncodeOpenFile(44100, 2, BASS_SAMPLE_FLOAT, 128000,pchar(outpath));
if format='Mp3' then begin cmdline:=mp3cmdline(samplerate,bitrate,channels,outpath);
BASS_Encode_Start(chan,pchar(cmdline),BASS_ENCODE_FP_32BIT,nil,nil); end;
if format='Wav' then begin BASS_Encode_Start(chan,pchar(outpath),BASS_ENCODE_PCM,nil,nil); end;
|