Author Topic: BASS_StreamCreateFile() from memory  (Read 4779 times)

steventcy

  • Guest
BASS_StreamCreateFile() from memory
« on: 2 Jul '09 - 16:49 »
i wan to loadsongs then i has key in the code

public void LoadSong(string location)
{
  int stream= Bass.BASS_STREAMCreateFile(location,0,0
                  BASSFlag.BASS_SAMPLE_FLOAT);
}

but cannot load songs, can explain to me what happen?

radio42

  • Posts: 4573
Re: BASS_StreamCreateFile() from memory
« Reply #1 on: 2 Jul '09 - 17:04 »
Sorry, I do not understand your question or issue?

Steventcy

  • Guest
Re: BASS_StreamCreateFile() from memory
« Reply #2 on: 2 Jul '09 - 17:09 »
the problem is DLLnot foundexception was unhandled
>unable to load DLL 'bass.ll: the specific module could not be found.(exception from HRESULT:0x8007007E)

Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: BASS_StreamCreateFile() from memory
« Reply #3 on: 2 Jul '09 - 17:22 »
That looks like you are missing the BASS.DLL file, which is required by BASS.Net. You can find it in the standard BASS package, available from the BASS webpage.

There is also a little problem with your BASS_StreamCreateFile call: you need to provide the size of the data in memory, in the "length" parameter.

steventcy

  • Guest
Re: BASS_StreamCreateFile() from memory
« Reply #4 on: 2 Jul '09 - 18:33 »
thank you..... appreciate it.

steventcy

  • Guest
Re: BASS_StreamCreateFile() from memory
« Reply #5 on: 2 Jul '09 - 18:41 »
Ian, i using the BASS.NET 2.4.4.4, and the is it using the BASS.NET dll?
i will correct the length problem. thanks