CodeExplorer Posted July 3, 2011 Posted July 3, 2011 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.
CodeExplorer Posted July 3, 2011 Author Posted July 3, 2011 ups ... The link:/>http://www.un4seen.com/
Walkin Posted July 3, 2011 Posted July 3, 2011 (edited) 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, 2011 by Walkin
k5h Posted July 4, 2011 Posted July 4, 2011 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
Walkin Posted July 4, 2011 Posted July 4, 2011 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 :/
Walkin Posted July 6, 2011 Posted July 6, 2011 Kurapica, could successfully use the native bass.dll from memory stream? I'm getting problems doin so
Ufo-Pu55y Posted July 6, 2011 Posted July 6, 2011 http://forum.tuts4you.com/index.php?showtopic=15538 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now