Hola, otra forma es con la libreria llamada
bassmod.dll, con esa podes reproducir en memoria todo estos formatos raros como
.MOD o
.XM que tienen los keygen, esta libreria la usa el winamp y mas reproductores de audios, aca te paso una descripcion en ingles:
BASS is an audio library for use in Windows software. Its purpose is to provide developers with the most powerful and efficient (yet easy to use), sample, stream (MP3, MP2, MP1, OGG, WAV, 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.
esta libreria dentro tiene funciones para hacer lo que quieras, pausa, stop..etc.
ya hace mucho la habia probado y funciona perfecto, este codigo de prueba esta en VB .NET
Public Class Form1
Private Declare Sub BASSMOD_Free Lib "bassmod.dll" ()
Private Declare Function BASSMOD_Init Lib "bassmod.dll" (ByVal device As Integer, ByVal freq As Integer, ByVal flags As Integer) As Short
Private Declare Function BASSMOD_MusicLoad Lib "bassmod.dll" (ByVal mem As Short, ByVal pfile As String, ByVal offset As Integer, ByVal Length As Integer, ByVal flags As Integer) As Short
Private Declare Function BASSMOD_MusicPlay Lib "bassmod.dll" () As Short
Private Declare Function BASSMOD_MusicStop Lib "bassmod.dll" () As Short
Private Declare Function BASSMOD_MusicGetPosition Lib "bassmod.dll" () As Short
Private Declare Function BASSMOD_MusicIsActive Lib "bassmod.dll" () As Short
Private Declare Function BASSMOD_MusicSetPosition Lib "bassmod.dll" (ByVal Posição As Integer) As Integer
Private Declare Function BASSMOD_MusicGetLength Lib "bassmod.dll" (ByVal Tamanho As Integer) As Integer
Private Declare Function BASSMOD_MusicPause Lib "bassmod.dll" () As Short
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
BASSMOD_MusicStop()
BASSMOD_Free()
BASSMOD_Init(-1, 44100, 0)
BASSMOD_MusicLoad(0, "C:\keygen.xm", 0, 0, 2 Or 512)
BASSMOD_MusicPlay()
End Sub
End Class
tambien seria posible meter el archivo de sonido como archvios de recursos asi no tenes que llevarlo.
saludos.