Click here to Skip to main content
15,886,693 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I should take audio from Tv tuner card in WPF.To take audio from audio card,I wrote something.I can play any audio which is .wav extension when I give the path where the audio is .(like "C:\\music.wav") , for the stream source with DirectSound of DirectX.

myFormHost = new WindowsFormsHost();
myContainer = new ContainerControl();
myFormHost.Child = myContainer;
stackPanel1.Children.Add(myFormHost);
sounddevice = new DS.Device();
sounddevice.SetCooperativeLevel(myContainer,CooperativeLevel.Normal);
BufferDescription description = new BufferDescription();
description.ControlEffects = false;
shotsound = new Microsoft.DirectX.DirectSound.SecondaryBuffer('Stream Source',description, sounddevice);
at SecondaryBuffer description ,I write a few thing for 'Stream Source' which is possible but it doesn't work.

What can I put as a parameter for Stream source part to take audio from tv tuner?
Thanks in advance for your replies..
Posted
Updated 11-Jul-11 7:42am
v4
Comments
Tarun.K.S 11-Jul-11 13:43pm    
Please wrap your code in <pre> tags.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900