Posted July 3, 201114 yr BASS is an audio library for use in software on several platforms. Its purpose is to provide developers with powerful and efficient sample, stream (MP3, MP2, MP1, OGG, WAV, AIFF, custom generated, and more via add-ons), MOD music (XM, IT, S3M, MOD, MTM, UMX), MO3 music (MP3/OGG compressed MODs), and recording functions. All in a tiny DLL, under 100KB* in size.C/C++, Delphi, Visual Basic, and MASM APIs are provided, with several examples to get you started. .Net and other APIs are also available.BASS is also available for the Win64, WinCE, and iOS platforms. BASS has a native dll.
July 3, 201114 yr I tried the code you guys, BlackStorm, have in the portal. But i can't load it automatically from the stream for using it i.g. in a keygen :/I get a NullReferenceException, but if i put it in a Try...Catch...Finally, the program does nothing.Btw, i tried using the native oneAny idea of what could be happening?Thx in advanced Edited July 3, 201114 yr by Walkin
July 4, 201114 yr Imports SystemImports Un4seen.BassModule Module1 Sub Main() If bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero) Then Dim hmusic As Integer = bass.BASS_MusicLoad("CrackME.lost.xm", 0, 0, BASSFlag.BASS_DEFAULT, 44100) ' // load the XM file If hmusic <> 0 Then ' play the stream channel bass.BASS_ChannelPlay(hmusic, False) Else ' error creating the stream Console.WriteLine("Stream error: {0}", bass.BASS_ErrorGetCode()) End If ' wait for a key Console.WriteLine("Press any key to exit") Console.ReadKey(False) bass.BASS_ChannelPlay(hmusic, False) ' // start playing it bass.BASS_MusicFree(hmusic) '; // free the loaded XM bass.BASS_Free() '; // free the output device End If End SubEnd Module
July 4, 201114 yr That's the .net one, i was using the native one. I always get an entry point problem when trying to load it from memory stream,but about the native i get a null reference exception. XDThx for the code, but i want to load, both the dll and the xm, from memory :/
July 6, 201114 yr Kurapica, could successfully use the native bass.dll from memory stream? I'm getting problems doin so
Create an account or sign in to comment