Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > Pro VB.NET 2002/2003
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 29th, 2003, 10:11 AM
Registered User
 
Join Date: Dec 2003
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old December 29th, 2003, 11:42 AM
Registered User
 
Join Date: Dec 2003
Location: , , .
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
Reply With Quote
  #3 (permalink)  
Old April 8th, 2005, 12:22 AM
Registered User
 
Join Date: Apr 2005
Location: Fresnillo, Zacatecas, Mexico.
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.
Reply With Quote
  #4 (permalink)  
Old July 20th, 2006, 08:11 PM
Authorized User
 
Join Date: Feb 2005
Location: Amman, Amman, Jordan.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to fmo_82
Default

check www.socketcoder.com

Last edited by fmo_82; March 16th, 2010 at 02:46 AM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.