INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

take the output from the audio card and broadcast it over a network

take the output from the audio card and broadcast it over a network

take the output from the audio card and broadcast it over a network

(OP)
Hello people,

I have started to create a program where the goal is to use the primary soundcard as a radio station.

I have done much research but it seems like no one have made this kind of solution before.

Now is my issue how to make my app play the sounds from the soundcard that is in use.

(example if I turn on spotify I want my to play the music or if I have any other program that makes sounds make them playback in my app)

I want to take the output from the audio card and broadcast it over my network.

here is my code so far.

CODE --> VB.net

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Dim SoundDevicelist As New List(Of String)
        Try
            Dim searcher As New ManagementObjectSearcher(
                "root\CIMV2",
                "SELECT * FROM Win32_SoundDevice")
 
            For Each queryObj As ManagementObject In searcher.Get()
                ' Console.WriteLine("-----------------------------------")
                'Console.WriteLine("Description: {0}", queryObj("Description"))
                'Console.WriteLine("Manufacturer: {0}", queryObj("Manufacturer"))
                ' Console.WriteLine("Caption: {0}", queryObj("Caption"))
                ' Console.WriteLine("PNPDeviceID: {0}", queryObj("PNPDeviceID"))
                ' Console.WriteLine("Availability: {0}", queryObj("Availability"))
                SoundDevicelist.Add(queryObj("Caption").ToString())
            Next
        Catch err As ManagementException
            MessageBox.Show("An error occurred while querying for WMI data: " & err.Message)
        End Try
        For Each item In SoundDevicelist
            MsgBox(item)
        Next
End sub 

my code so far just listening the available devices above.
now is the more tricky part.

Could someone help me?

Thank you in advance

RE: take the output from the audio card and broadcast it over a network

There's a C## project here that might provide some insight: http://www.codeproject.com/Articles/394890/Play-or...

If you are not a member of CodeProject you may need to create a (free) account to access all resources.

RE: take the output from the audio card and broadcast it over a network

(OP)
I have already downloaded that project it was nice.
the issue it's c##.

Thank you anyway.

RE: take the output from the audio card and broadcast it over a network

>the issue it's c##.

I know. I did make that point. But the idea was that you'd be able to get an idea of how simple or not this would be to code from scratch, rather than it being an immediate solution for you.


RE: take the output from the audio card and broadcast it over a network

(OP)
I understand it was gently :)

tho hard to understand the code and code it from scratch :)
I am still interesting in find samples I could use to prepare my own code but in VB.net

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close