I'm using Bass.Net 2.4.6.8 (I'm new) and have ran across a problem which is most likely my own. I am mixing several channels which contain 1-2 second .ogg files (decoded). They are offset at various times and have effects applied to them. Often the channels originate from the same .ogg file, but are offset in time to create a looping effect. The problem is when I apply different effects to different channels that originate from the same file, the first effect get's applied to all channels with the same file. Here's my code:
public void AddToMixer(int mixer, int mixerBpm)
{
//Create effects channel
var bassStream = Bass.BASS_StreamCreateFile(Path + FileName, 0, 0, BASSFlag.BASS_STREAM_DECODE);
bassStream = BassFx.BASS_FX_TempoCreate(bassStream, BASSFlag.BASS_STREAM_DECODE);
//setup effects
Bass.BASS_ChannelSetAttribute(bassStream, BASSAttribute.BASS_ATTRIB_TEMPO, (float) Percentage);
Bass.BASS_ChannelSetAttribute(bassStream, BASSAttribute.BASS_ATTRIB_PAN, (float)Pan);
// delay channel (calculateStartTime retreives the seconds to delay by)
var start = Bass.BASS_ChannelSeconds2Bytes(mixer, CalculateStartTime(mixerBpm));
BassMix.BASS_Mixer_StreamAddChannelEx(mixer, bassStream, BASSFlag.BASS_STREAM_AUTOFREE, start, 0);
Debug.WriteLine("Stream: " + bassStream + ", Song Id: " + Id + ", Pan: " + Pan);
}
Here's my output from the debug.writeLine:
Stream: -1342177277, Song Id: 177, Pan: -1
Stream: -1342177274, Song Id: 177, Pan: 0
Stream: -1342177271, Song Id: 177, Pan: 0
Stream: -1342177268, Song Id: 177, Pan: 0
Stream: -1342177265, Song Id: 177, Pan: 0
Stream: -1342177262, Song Id: 145, Pan: 0
Stream: -1342177259, Song Id: 145, Pan: 0
The problem is all Song Id's of 177 will have a Pan of -1 (left) when I view the final .ogg file in Audacity even though the rest should be centered at 0. Any idea as to why this happens?