Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Audio streaming

Audio streaming

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelpquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    meinhard_risch
    wrote on last edited by
    #1

    Hi to you, I'm looking for a way to stream audio-outputs over a local net. So first I have to program a server, which listen the wav-output and secound I have to make a client which access data from the server using ftp. At the end, I can hear the same music over several floors using wlan. Could everone help me to realise this? Thank you! Meinhard

    L M A 3 Replies Last reply
    0
    • M meinhard_risch

      Hi to you, I'm looking for a way to stream audio-outputs over a local net. So first I have to program a server, which listen the wav-output and secound I have to make a client which access data from the server using ftp. At the end, I can hear the same music over several floors using wlan. Could everone help me to realise this? Thank you! Meinhard

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You might look at UDP rather than FTP for streaming. The tigress is here :-D

      1 Reply Last reply
      0
      • M meinhard_risch

        Hi to you, I'm looking for a way to stream audio-outputs over a local net. So first I have to program a server, which listen the wav-output and secound I have to make a client which access data from the server using ftp. At the end, I can hear the same music over several floors using wlan. Could everone help me to realise this? Thank you! Meinhard

        M Offline
        M Offline
        M Mehrdad M
        wrote on last edited by
        #3

        You canuse WaveOut And WaveIn API,s for in/out Audio. UDP is The the suitable WAy to transfer Voice DAta, You Must Use RTP_Real Time Protocol To Syncronize Source and Destination, :laugh: This is Simply Works!!!!

        A 1 Reply Last reply
        0
        • M meinhard_risch

          Hi to you, I'm looking for a way to stream audio-outputs over a local net. So first I have to program a server, which listen the wav-output and secound I have to make a client which access data from the server using ftp. At the end, I can hear the same music over several floors using wlan. Could everone help me to realise this? Thank you! Meinhard

          A Offline
          A Offline
          Alexander M
          wrote on last edited by
          #4

          FTP is a file transfer protocol, you can not use it for streaming! Either use TCP (which is easier to handle) or UDP! The way the whole thing works is quite easy. You can either send uncompressed data (WLan should be fast enough) or better use compressed data if you have many streaming clients or the connection is too slow. For that case I personally wouldn't use RTP because it is difficult to implement if you don't want to use the live library or any other RTP library. Since WLan normally is a reliable network I propose you use TCP. Before streaming transmit the settings of the data to the client (sampling rate, bits per sample, ...). The streaming is easy then: -create a directsound buffer (should be big to prevent lags!) -decompress (if compressed) -load the data in a (big) directsound buffer. -after the buffer gets full the first time, you should run it. Don't try it, just do it! ;-)

          1 Reply Last reply
          0
          • M M Mehrdad M

            You canuse WaveOut And WaveIn API,s for in/out Audio. UDP is The the suitable WAy to transfer Voice DAta, You Must Use RTP_Real Time Protocol To Syncronize Source and Destination, :laugh: This is Simply Works!!!!

            A Offline
            A Offline
            Alexander M
            wrote on last edited by
            #5

            Synchronization does not make sense here, because it can't be synchron (network delay!) and you only have one stream. Don't try it, just do it! ;-)

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups