Hi,
I'm sorry of my really poor answering.
This is my "side-project", unfortunately work must be done before fun things.
I have now tested this both with ogg and mp3.
The same result
I also updated the BASS, I use the following code modules now:
Bass.NET.dll 2.4.7.3
bass.dll 2.4.7.1
As I mentiond this only happens when starting Windows the first time. After that everything works super fast.
Is there some "intialization" done? Putting the library to the GAC or something.
Just to be sure that there aren't any problem with my other system I created a new Visual Studio project with the following code (still the same result). If you want the whole solution I can send it to you.
public Form1() {
InitializeComponent();
Un4seen.Bass.BassNet.Registration("
X@gmail.com", "XXXX"); // replace X with correct information
Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero);
Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_BUFFER, 5000);
}
private void button1_Click(object sender, EventArgs e) {
DialogResult result = openFileDialog1.ShowDialog();
if(result == System.Windows.Forms.DialogResult.OK){
int stream = Bass.BASS_StreamCreateFile(openFileDialog1.FileName, 0, 0, BASSFlag.BASS_SAMPLE_FLOAT);
bool success = Bass.BASS_ChannelPlay(stream, false);
}
}