Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 47075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:03:56+00:00 2026-05-10T16:03:56+00:00

I have a server that sends data via a socket, the data is a

  • 0

I have a server that sends data via a socket, the data is a wav ‘file’. I can easily write the data to disk and then play it in WMP, but I have no idea how I can play it as I read it from the socket. Is it possible?

Bonus question: how would I do it if the stream was in mp3 or other format?

This is for windows in native C++.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:03:57+00:00Added an answer on May 10, 2026 at 4:03 pm

    Because you’ve said WMP, I’m assuming the question applies to trying to play a wav file on a windows machine. If not, this answer isn’t relevant.

    What you want to do isn’t trivial. There is a good article here on code project that describes the windows audio model. It describes how to set up the audio device and how to stream data into the device for playback. You ‘simply’ need to supply data coming in from your socket as data for the playback buffers. But that’s where all of the tricky work is. You have to be sure that

    • You have enough data to begin a playback
    • Handle the case when your socket is starved for data and you have nothing to send to the playback buffer
    • You are able to read data off of the socket with enough speed to keep the playback buffers full

    It’s an interesting exercise. But tricky.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 70k
  • Answers 70k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer They are extensions located in the assembly Micosoft.Web.MVC. You have… May 11, 2026 at 12:52 pm
  • added an answer Axis 1 is the left y-Axis and with the chxl… May 11, 2026 at 12:52 pm
  • added an answer try (FileOutputStream out = new FileOutputStream(filename)) { bmp.compress(Bitmap.CompressFormat.PNG, 100, out);… May 11, 2026 at 12:52 pm

Related Questions

I have a client server application that sends XML over TCP/IP from client to
I have a server that hosts my Subversion code base. That server is currently
I have a server that listens for a connection on a socket: public class
I have a simple php script on a server that's using fsockopen to connect
I'm having a strange problem here... I have an ASP.NET 3.5 application that has
Here is the spec: Multiple clients using a WPF winforms application on their local
I want to create a very simple HTML/AJAX based GUI for a Python program.
I'm been reading up on Ajax and would like to see from the stackoverflow

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.