Directly? You want the raw data?
Video:
Not raw, but you could use still images to disk/read and process with
one of the programs listed here (I assume you meant video from a webcam)...
Sound:
LineInCode (GNU GPL)
Quote:
This program captures audio data and dumps it as raw PCM data into its standard output (STDOUT)
And since I'm interested in the subject, I searched a bit, and found some other interesting code, programs and sites on the subject(s):
Real Time Sound Comparator, does exactly what you wanted, but is a fullscreen DOSBox payware (trial/demo available), and
needs a Sound Blaster 16...
Quote:
The program is designed for real time scale concurrence detection of a sound signal with previously recorded patterns.
One of the most attractive features of the program is the sound signal monitoring (TV, Radio, Video ads clipping, the advertising announcements passing reliability, songs ratings, on air copyrights control etc.).
It is important to note, that the program is compared a COPYES of the same sounds and is not designed for announcer verification or speech identification purposes.
One of the following inputs of sound card can be chosen as the signal source: Microphone, Audio Compact Disk (CD), Linear input of a sound card. The Linear input could be connected to an external device, e.g. TV/FM tuner, a radio receiver, TV-set etc.
It is possible to create up to 255 sound patterns (PCM, 6144 Hz, 16 bit, 4 sec, mono each one). The patterns are recorded into WAV files with names from patt001.wav to patt255.wav and stored into \Patterns subdirectory.
Up to 12 patterns can simultaneously be compared to the signal of one channel (Mono, Left, Right). Or up to 6+6 patterns, when two channels used (Left & Right) simultaneously.
Interesting stuff (maybe even worth running on an old box), but I couldn't really get it to work with
VDMSound to test...
Quote:
VDMSound is a program that overcomes what has probably been the most exasperating limitation of DOS boxes since Windows NT - sound support. VDMSound is an open, plug-in oriented platform that emulates an MPU-401 interface (for outputting high-quality MIDI music), a SoundBlaster compatible (SB16, SBPro 2, SB2, SBPro, etc.) implementation (for digital sound effects and FM/AdLib music), as well as a standard game-port interface (for playing games with joystick support). In development are improvements to the existing joystick emulation, and possibly VESA support.
Unlike all the Win9x SoundBlaster ISA ‘legacy’ drivers available from a variety of PCI soundcard manufacturers, VDMSound is not a mere ‘wrapper’ or ‘bridge’ to existing audio hardware. It is a self-contained, 100% software emulation program that is completely independent of your audio hardware type and settings. VDMSound works with any soundcard, and will even work on computers that have no audio hardware at all (for instance, instead of outputting sounds through your soundcard using the standard Windows drivers, VDMSound can easily output them to disk).
Interesting command line software for soundanalysis can be found on the
Picosound homepage too (untested).
Also interesting:
Music ExplorerBut, for analysis of incoming data to be really useful, it should be able to 'tap' from the source only, not take the whole source and make it unavailable to other programs.
I couldn't find a free multi-client driver for audio, but
Virtual Audio Cable (Payware, demo available) offers exactly that:
Quote:
Virtual Audio Cable is a Windows multimedia driver allowing you to transfer audio (wave) streams from one application to another. It creates a pair of Wave In/Out devices for each cable. Any application can send audio stream to Out device, and any other application can receive this stream from In device.
If more than one applications are sending audio to VAC, it will mix all streams together. If more than one applications are receiving audio from VAC, it will share the same audio data between all targets.
If you are interested in writing your own version
here is a very simple
sounding explanation (Writing a virtual audio driver)...
There is a freeware multi-client driver for video,
SplitCam, but it insists on phoning home

so, avoid it...
Oh, and something else I found:
You can invoke the "Volume Controls" with this command line:
Code:
%WINDIR%\SNDVOL32.EXE
Not really exiting, but you can invoke the "Record Controls" with this command line:
Code:
%WINDIR%\SNDVOL32.EXE /R
And, more interesting, if you invoke the "Volume Controls" with this command line, you'll get the different inputs.:
Code:
%WINDIR%\SNDVOL32.EXE /D[0-n]
Two related handy dandy programs:
QuickMixQuote:
QuickMix is a simple applet that allows you to store all or part of the current state of your audio mixer in a settings file, and to restore the mixer to that state whenever you want.
Quick MixerQuote:
Quick Mixer is a tray-agent alternative to the Windows Volume Control (SNDVOL32.EXE). Quick Mixer is re-sizeable and has many settings which affect the way it looks and acts. Quick Mixer is a great replacement for that little yellow speaker icon that may now be in your tray! Quick Mixer controls Main-Volume, Main-Treble, Main-Bass and up-to 16 playback audio sources! Quick Mixer gives you access to every available playback mute on your sound-card. Quick Mixer gives you access to the first on/off check under Advanced, Other Controls. Quick Mixer allows you to create 10 audio profiles and optionally starts up with a default profile.