Is it possible to record sound from one window? - c#

I've managed to write program to record sound from Input Devices, but I'm more interested in recording from one window that plays some sounds. Is it possible to catch those sounds and not all possible sounds played currently?
Sorry for my english.

As the program you want to record is talking directly to the sound driver api your only chance would be to create an own "man in the middle" sound driver which could filter off and forward an audio stream to your application.
So if you are not planning to invest a serious amount of time the answer probably is "No, its not possible".

Related

How can I take a HD signal from a device with component-out and display it in a window in a C# application?

I've been tasked with getting the video from the component out ports of a video device into a window in our C# application.
Think taking the component output from a TiVo or DVD player (not HDMI so no HDCP to worry about) and displaying it in a window.
We are only looking for basic real-time streaming. No recording, no snapshots, no video overlays... just showing the source in a window with sound. Nothing else.
I have searched high and low for a few months now and haven't found any devices that will let us do this.
I have found several capture devices such as Elgato's Game Capture HD but (I was told) they aren't a true capture device and therefore don't work with things like DirectShow, so you can't use them with third-party software, only their own.
I have also found cheap Component-to-USB capture devices on Amazon, but they say they don't support HD.
Note: We don't want something like SlingBox which a) has too much lag because of its buffer, and b) you can't integrate it with your own application anyway.
So can anyone give me some pointers on where to go? Been searching for a few months now and getting nowhere fast and now time is starting to be come critical and I literally still have zero leads here.
The only decent HD capture device I have found is from BlackMagicDesign, I use this on my MediaCenter to record HD from My settop box, so maybe one of thier products may help you.
http://www.blackmagicdesign.com/products/intensity/

sending a beep through microphone input

Is a way of creating a program (either in C(+,++,#) or VB.net) that would be able to send a beep sound through the same line-in that is being used for audacity (not stereo mix)?
I am trying to make a way of syncing up audio and video from 2 different programs, in a similar way that a clapper bored works in the movies.
Would there be a way of using a sort of microphone enhancement that could be created because they affect the microphone input?
I assume you're trying to implement something like http://www.singularsoftware.com/pluraleyes.html then? I think the best way would be to write a VST/LADSPA plug-in for Audacity that inserts the beeps synced to a timecode stream (or whatever you're syncing to).
There's a neat little library called VST.NET that allows you to write VST plug-ins in standard C#/VB.NET if you like.

Measure speaker volume by recording playing sound with microphone

I want to measure a system's speaker volume by playing a sound and listening for it on a local microphone at the same time. This is for a specific application. The exact recorded sound is not as important as differentiating between the microphone volume recorded before the sound is played and while it is playing.
The idea is to warn the user if speakers are turned off or too low. How can I record a sound while playing it and determine a difference in volume? Are there are any managed libraries to do this?
Update: Found a good related question.
Take this:
http://windowsmedianet.sourceforge.net/
and use waveIn managed wrapper.
http://msdn.microsoft.com/en-us/library/ms712636(VS.85).aspx
Of course, you'll need some calibration there...

Capture all audio on a PC and stream it to another?

Imagine this scenario: You have a desktop and a laptop. The desktop has a high end set of speakers, the laptop does not. You currently use Synergy to share your mouse and keyboard, but audio is a problem.
Is there a way in C# to create a client that captures all of the sound on a PC(I'm thinking like a virtual sound card) and streams it to server that hosts the real sound card?
Not a programming solution - but airfoil with airfoil speakers will do what you want and it's not expensive.
http://rogueamoeba.com/airfoil/speakers.php
Streaming sound shouldn't be a problem if you design something like a ring buffer in case you have lags in the network to avoid breaking the sound wave.
For capture though, I don't see any easy solution short of creating a virtual WDM driver that you put on top of the sound card (either input or output) you want to capture.
There is AirFoil, as morechilli mentioned. It works with minimal setup, however the output is very noticeably latent.
The PulseAudio project might hold the key to low-latency. A lot of relevant questions on SuperUser.
I'm not sure if this is the solution you're looking for, but I quite often shoutcast over my home network using winamp and the shoutcast server. If it's just music you want to listen to, this will do the trick. However (and I admit I have not tested this), you can tell the encoder what to listen to - normally you just get it to listen to the output buffer of winamp, but there is a setting that allows it to listen to the output to your soundcard.
http://www.shoutcast.com/download
Yeah, you write a driver that is a virtual sound card and IPC's off the information to a service that streams the data out.

Recording and saving sounds from applications?

I Would like to make an appliaction in c# (or vb.net) that records every sound that comes out from the speakers when i tell it to, and when im finished i want to push a button and save it as an mp3 (or some other format).
So far i have only found APIs that can record something from a microphone.
My Question is:
Is there anything in the .NET framework or is there some API for making this possible?
I haven't seen much on sound recording from the soundcard purely from the .NET framework, but you may find this interesting. There are libraries such as FMOD and BASS that work with .NET and may provide you with the ability to record the sound coming out the speakers. I came across this thread for BASS, but I'm not sure if that's of any use.

Categories