Solved

Audio Stream Editing & Broadcast

Posted on 2002-06-14
3
318 Views
Last Modified: 2012-05-04
I'm trying to build a proof-of-concept presentation tool in which the presenter can select from multiple available audio streams (including a microphone/line in/currently playing audio programs if I can capture their output somehow) and broadcast that combined stream to a small number of clients.

I have a low maximum number of clients (under 30) so I could just create one thread per client connection and pass it data that it streams to the client. That part I can deal with just fine. The part I have no clue how to address in .NET is the audio streams: Where to get them from, how to manipulate them (combine, fade, etc.) and then how to send it to the wave device once I'm done "processing" the stream.

I'm not against using DirectX from my managed code, but I'll need lots of details on how to make it well-behaved for I do need a stable implementation.

I know I can already implement all the other features required, but on the audio streaming part I'm stumped, so therefore 200 points up for grabs if someone can lead me to a solution in .NET/C# so that I can get this project going.

I'll give a 1000 points if you give & explain to me C# code for a complete implementation equivalent to NullSoft's ShoutCast.
0
Comment
Question by:ayrezyle
3 Comments
 
LVL 4

Accepted Solution

by:
DarthPedro earned 200 total points
ID: 7172936
I'm not sure if you found your answer to this yet, or even if you're interested any more.  But, here's a link to a good sample of using DirectX to do sound in a .NET Framework-based sample game.  It's pretty detailed code and has a DirectSoundClass that you should be able to add to your project directly (and it's all in C#).
http://www.gotdotnet.com/userfiles/edgecrush3r/Deviate.zip

To get DirectX component integrated into your .NET project, you need to add a reference to it in your WinForm project.  To do this, select the project and right click it.  Then, click the Add Reference item in the menu.  Then, click on the COM page tab.  Scroll down to the "DirectX 8 for Visual Basic Type Library" (don't let the name fool you; you need it for your C# project as well). Click OK and a new Interop.DxVBLib.dll item should have been added to your project.  The DirectSoundClass above uses this component to do the interoperability with DirectX.

Let me know if that helped at all, or if you need more information.
0
 
LVL 8

Expert Comment

by:zlatev
ID: 7964886
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- solved by DarthPedro


Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Zlatin Zlatev
0
 
LVL 1

Author Comment

by:ayrezyle
ID: 7965370
Not quite what I wanted, but fair is fair.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now