Jump to content
Tuts 4 You

BASS


CodeExplorer

Recommended Posts

CodeExplorer
Posted

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

ups ... :P

The link:
/>http://www.un4seen.com/

Posted (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 one

Any idea of what could be happening?

Thx in advanced

Edited by Walkin
Posted
Imports System
Imports Un4seen.Bass
Module 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 Sub
End Module
Posted

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. XD

Thx for the code, but i want to load, both the dll and the xm, from memory :/

Posted

Kurapica, could successfully use the native bass.dll from memory stream? I'm getting problems doin so :(

Posted

Thank You Ufo ^^ :D

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...