chan1 = BASS_AAC_StreamCreateFile(FALSE,datei,0,0,BASS_STREAM_DECODE);
chan3 = BASS_AAC_StreamCreateFile(FALSE,datei,0,0,BASS_STREAM_DECODE);
mixing = BASS_Mixer_StreamCreate (44101,2, BASS_STREAM_DECODE);
BASS_Mixer_StreamAddChannel (mixing, chan1, 0);
mix2 = BASS_Mixer_StreamCreate (44100,2, BASS_STREAM_DECODE);
BASS_Mixer_StreamAddChannel (mix2, chan3, 0);
enc = BASS_Encode_StartLimit(mixing,"aacplusenc - - 48",BASS_ENCODE_LIMIT,0,0,100000000);
BASS_Encode_ServerInit (enc, radioport, 560000, 480000, 0, servfunc, NULL);
enc2 = BASS_Encode_StartLimit(mix2,"aacplusenc - - 48",BASS_ENCODE_LIMIT,0,0,100000000);
BASS_Encode_ServerInit (enc2, "0.0.0.0:8050", 560000, 480000, 0, servfunc2, NULL);
enc with BASS_Mixer_StreamCreate (44101... you can listen to with
http://djtraumwelt.de:8000enc2 with BASS_Mixer_StreamCreate (44100... you can listen to with
http://djtraumwelt.de:8050should be online 24/7
port 8000 with a different sample frequenzy 44101 instead of 44100 he is resampling and sound is good
port 8050 with same sample frequenzy he isnt resampling and sound is overdriven, much too loud and bad.
i solved it with using 44101 as sample frequency
but it would still be nice to solve it in the libbassmix.so