Multimedia Programming with vb.NET 
Author Message
 Multimedia Programming with vb.NET

Has anyone seen any resources for low level play and record of wav files
using vb.net? I need more control than the ol sndPlaySound routines. I am
hoping for the waveInOpen, mmioopen, calls, etc...

Thanks..
Tommy



Wed, 16 Feb 2005 02:32:07 GMT  
 Multimedia Programming with vb.NET
Managed DirectX will be available late fall this year.

the DX8.1 VB typelib can be used in some situations with COM interop, but
there are situations where its broken.

one can use P/Invoke for individual Win32 procedure calls...

a google search will turn up samples...


Quote:
> Has anyone seen any resources for low level play and record of wav files
> using vb.net? I need more control than the ol sndPlaySound routines. I am
> hoping for the waveInOpen, mmioopen, calls, etc...

> Thanks..
> Tommy



Wed, 16 Feb 2005 05:55:57 GMT  
 Multimedia Programming with vb.NET
There's no specific .NET class to achieve that but you can do it using
declared functions (P/Invoke) like this (code taken from an earlier thread):

Private Declare Auto Function PlaySound Lib "winmm.dll" _
    (ByVal lpszSoundName As String, ByVal hModule As Integer, _
    ByVal dwFlags As Integer) As Integer

Private Sub PlayWave()
    Dim fileName As String
    Const SND_FILENAME As Integer = &H20000
    fileName = System.IO.Path.GetDirectoryName(Application.ExecutablePath) &
"\MyWave.wav"
    PlaySound(fileName, 0, SND_FILENAME)
End Sub

You'll have to do the same for the other multimedia functions.

Hope this helps,
Antoine, Pan, Abel
Microsoft Visual Basic .NET Team

--
This posting is provided "AS IS" with no warranties, and confers no rights.
(c) copyright Microsoft Corporation 2002


Quote:
> Has anyone seen any resources for low level play and record of wav files
> using vb.net? I need more control than the ol sndPlaySound routines. I am
> hoping for the waveInOpen, mmioopen, calls, etc...

> Thanks..
> Tommy



Sun, 20 Feb 2005 04:22:52 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Multimedia Sample Program in VB using database

2. Using VB.NET programming ASP.NET

3. (newbie) Starting a program from a VB.net program

4. Converting Embedded VB programs to VB.NET

5. VB .Net required to program VB for Pocket PC 2002

6. Programming for MultiMedia:Sound

7. Easier directX/multimedia programming?

8. Multimedia programming reference?

9. Easier directX/multimedia programming?

10. VB6 Multimedia Program...HELP

11. Visual C++.NET ADO.NET PROGRAMMING

12. programming in Outlook using C# or VB.NET?

 

 
Powered by phpBB® Forum Software