Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
|
Pro VB.NET 2002/2003 For advanced Visual Basic coders working .NET version 2002/2003. Beginning-level questions will be redirected to other forums, including Beginning VB.NET.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 29th, 2003, 10:11 AM
Registered User
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Play audio streams directly from a winsock port

I have developend an application that links two PCs over the internet to exchange text/voice messages.

I would like to, instead of waiting for the audio streram to be saved to a file then play it, I would like to play it directly from the winsock port to the speakers... i.e live voice chat!

I found a way to do this in JAVA but none in VB, it would cost me a lot of time to convert the whole application to JAVA.

Any ideas please!

Thanks,
Ash

Ash
 
Old December 29th, 2003, 11:42 AM
Registered User
 
Join Date: Dec 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found that the answer could be in the winmm.dll and it's functions!

Declare Function waveOutAddBuffer Lib "winmm.dll" (ByVal hWaveIn As Long, lpWaveInHdr As WAVEHDR, ByVal uSize As Long) As Long

Declare Function waveOutWrite Lib "winmm.dll" (ByVal hWaveOut As Long, lpWaveOutHdr As WAVEHDR, ByVal uSize As Long) As Long

Declare Function waveInUnprepareHeader Lib "winmm.dll" (ByVal hWaveIn As Long, lpWaveInHdr As WAVEHDR, ByVal uSize As Long) As Long



Has anyone used this API before that could give me a tip?

Thanks,



Ash
 
Old April 8th, 2005, 12:22 AM
Registered User
 
Join Date: Apr 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello, I see your post and I have a similar problem I need to send real time audio betwen PC's and I'm wondering if you could help me with this. I wait for your answer and thanks for your time.





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to play audio kooky ASP.NET 2.0 Professional 0 February 2nd, 2008 01:38 AM
How do I send raw data directly to a serial port peterasimpson VB.NET 0 January 27th, 2008 09:42 PM
Streams in C# pady123 C# 2 September 11th, 2007 10:17 AM
Play Audio sumith ASP.NET 1.0 and 1.1 Basics 1 February 23rd, 2007 09:03 AM
play audio sumith ASP.NET 1.0 and 1.1 Professional 0 February 23rd, 2007 01:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.