473,323 Members | 1,589 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

soundplayer and streams question

djc
I should say first that I 'tinker' with programming and am not really a
'professional'. I just like to play with the stuff.

the system.media.soundplayer can take a stream as its source for a wav file
to play. Is there a way to send a wav file over a LAN via a socket and
receive it on the other end as a networkStream and make the soundplayer play
it? Perhaps using the socket.sendfile method?

any details on this would be appreciated... I tried the obvious (at least
what 'I' thought was obvious) with now luck. There is no syntax or compile
error when assigning a networkstream variable to the soundplayer.stream
property, however I have not figured out how to get it to play it. I tried
socket.sendfile on the client end and I get a load timeout on the server end
(client and server are on same machine). Extending the soundplayer's load
timeout does not help.

Feb 15 '06 #1
0 867

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Marc Cromme | last post by:
I would like to ask a question about (good ?) style and possibilities in mixing C FILE* and C++ file streams. The background is that I want to use the C libpng library from within C++, but I...
8
by: bonj | last post by:
hello I hope somebody can help me get my head around this area of 'stream' programming... I know that streams are very fashionable nowadays so hopefully there'll be lots of replies. ;-) ...
30
by: Chris McDonald | last post by:
Under Linux, I'm using select() to detect when any of a collection of socket descriptors is ready for reading. Associated with each socket descriptor is a FILE pointer, obtained via fdopen(sd,...
11
by: Kobu | last post by:
I have a question about C's abstract "streams" (that I can't seem to FULLY understand from reading several tutorials). Streams seems to suggest that input can be treated continously if needed....
6
by: David Veeneman | last post by:
How do I configure a .NET 2.0 SoundPlayer object to play a WAV file embedded as a resource? I have tried the example in the MSDN documentation, and I am getting nowhere. Is there a simple...
0
by: Richy | last post by:
Hi again, I have run into a problem with the System.Media.Soundplayer class, notably the Play method. The sound that plays gets garbled about 50% of the time, usually at the end, when it...
9
by: Roger | last post by:
When I run the following code it does not play on the client. When the server and client are on the same machine it plays??? Any help from anyone??? Dim errorSound As New...
1
by: woessner | last post by:
This is not a really well-formed question so please bear with me. I have a very large binary file (tens of GB). I would like to write a quick program to take a contiguous piece of the file and...
1
by: Jone | last post by:
Hello, Is it possible to play wav files slower or faster than the default speed of the SoundPlayer class does? I'm writing a small tool for guitarplayers and one feature would be a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.