This blog is moved to
http://amalhashim.wordpress.com

Tuesday, March 17, 2009

Play audio files using DirectX

Imports Microsoft.DirectX
Imports Microsoft.DirectX.AudioVideoPlayback
Public Class Form1
Private Sub Play_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Play.Click
Dim a As Audio
a = New Audio("C:\Users\User\Documents\Music_file_1.wma", True)
a.Play()
End Sub
End Class

No comments: