Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

Xsi

Programmer
May 29, 2015
121
0
0
SE
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:
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
 
I have already downloaded that project it was nice.
the issue it's c##.

Thank you anyway.
 
>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.


 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top