.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Capturing and streaming sound by using DirectSound with C#

Posted By: Syed Shakeer Hussain     Posted Date: March 08, 2011    Points: 2   Category :Others
Today we'll speak about how to get sound from your microphone or any other DirectSound capturing device (such as FM receiver) and stream it out to your PC speakers and any other DirectSound Output device. So, let's start creating our first echo service by using managed DirectX.
Important Link:-

View Complete Post

More Related Resource Links

IIS Smooth Streaming: Enhancing Silverlight Video Experiences with Contextual Data


Adaptive streaming addresses the problem of smooth content delivery and decoding. We walk you through the basics of IIS Smooth Streaming and demonstrate how you can manipulate audio, video and caption data in your own Silverlight projects.

Jit Ghosh

MSDN Magazine March 2010

UI Frontiers: Sound Generation in WPF Applications


A good case could be made that computers should not make noise except in response to a specific user command. We're going to ignore that and show you how to play custom sounds in a WPF application.

Charles Petzold

MSDN Magazine February 2010

C++ at Work: Web Version Checking, Adding Sound to an App


This month: CWebVersion revisited using HTTP instead of FTP, and adding sounds to an MFC-based app.

Paul DiLascia

MSDN Magazine May 2006

Advanced Basics: The Sound of Music


So you've got a burning desire to accompany your application's splash screen with a rousing chorus of "Funky Cold Medina" (that's Tone Loc for those of you who aren't children of the 80s). Prior to working with Visual Studio® 2005, adding even simple tunes and system sounds to your application could be a challenge.

Brad McCabe

MSDN Magazine January 2006

Web Services: Capturing and Analyzing Client Transaction Metrics for .NET-Based Web Services


This article presents a general-purpose client quality reporting mechanism that can be used in any .NET-based transaction system that employs HTTP/SOAP. The design uses client response time and quality recording, upload of logs as SOAP headers attached to new transaction requests, and server handoff of these headers to a low priority queue for logging and analysis. This technique gives an enterprise near real-time information on actual end-user response times. These response times reflect network delays, client application overhead and server delays. By using this technique, enterprises can avoid the need to develop custom software to mine HTTP logs.

Brian Connolly

MSDN Magazine July 2004

Capturing video remote from specific camera

Hi, I like to capture video with this camera http://www.sparkfun.com/commerce/product_info.php?products_id=8773 it has a rca output wich should be converted to a bytearray to send over a serial interface like ZigBee and back to show it on a eg laptop. I've got two questions: 1. How can I convert a rca signal to a bytearray? 2. How can I convert a bytearray back to a rca signal? Rca is the yellow plug for your video! Any help would be appreciated! Roel

Streaming Media Using Silverlight

One of the primary marketing hooks for Silverlight is its ability to stream media over the Web. Silverlight is able to do so using an embedded media player so that the client system does not need to have a player installed. This is a different approach from other media technologies. Most media technologies require that the client has a particular media player installed. With Silverlight, once the Silverlight plug-in is installed all Silverlight features are accessible, including media playback.

In an earlier module, we reviewed how to integrate multimedia into an ASP.NET AJAX application through the use of the ASP.NET Futures asp:Media control. The asp:Media control is an implementation of the Silverlight element.

Profile_OnMigrateAnonymous: capturing new login User.Name?

Hello all, I have a field stored in a database using the AnonymousID of a visitor. I want to have this field updated with the user's ID once they authenticate. Here are my questions: 1.) Is the Profile_OnMigrateAnonymous in the global.asax the proper place to do this. 2.) How can I capture the new login ID? Is is as simple as calling: HttpContext.Current.User.Identity.Name ? Thanks and have a good evening

How to use ASP.Net C# to integrate with video streaming?

Hi,          Can anyone tell me how to use ASP.Net C# to display video streaming on the ASP.Net Web? Another thing is the video can only run for one time. Do I need to use any plugin to develop it? How to use C# code to control the video? Please provide the details. Thanks Wesley 

Capturing state of the current scope.

is there a way to gain access to the state data for the current scope?

WCF Streaming Mode and Concurrency

Hi, I have a WCF application that is used to upload and download files. I was using ChunkingChannel to upload and download files, but since it started giving issues, I decided to use streaming mode. After I changed to the streaming mode, I find that mu muti-threaded application that calls a method on this interface  acts like a single threaded application. Here are the details of the service configuration:   NetTcpBinding tcpBinding = new NetTcpBinding(); tcpBinding.TransferMode = TransferMode.Streamed; //May have large files tcpBinding.MaxReceivedMessageSize = 10737418240; //10 GB tcpBinding.MaxBufferPoolSize = 0; // Refer : http://stackoverflow.com/questions/325275/in-wcf-should-you-have-large-maxbufferpoolsize-value-for-large-messages //Set the timeouts and add an end point tcpBinding.OpenTimeout = new TimeSpan(0, 0, 30); tcpBinding.CloseTimeout = new TimeSpan(0, 0, 30); tcpBinding.SendTimeout = new TimeSpan(24, 0, 0); //So as to allow uploading huge files tcpBinding.ReceiveTimeout = new TimeSpan(24, 0, 0); //So as to allow uploading huge files ServiceEndpoint svcEndPoint = _serviceHost.AddServiceEndpoint( typeof (IMediaManagement), tcpBinding, "ep1" ); //Throttling System.ServiceModel.Description.ServiceThrottlingBehavior throttlingBehavior = new System.ServiceModel.Description.ServiceThrottli

No sound when playing MPEG video in MediaElement

Hi, I am writing a multimedia centre using the WPF MediaElement control, the project is very mature and going really well. However I get no audio when my player plays a .MPG file. I have tried installing lots of different codec packages on my test machine but to no avail. The same files have audio when loaded in WMP but not in my WPF application. I am developing on an XP machine and on that I get sound, but on my target machine, Windows 7, no sound! Other formats such as AVI etc do not have this problem. Any ideas? Thanks in advance

Capturing each frame of WebBrowser

I need to capture each frame of System.Windows.Controls.WebBrowser Windows 7 does that nicely, you can notice that if you open a browser with some dynamic animated content like Flash or Sliverlight and look at the previews hovering over the taskbar or Win+Tab screens with Aero enabled, you can see the performance displayed there matches usual performance of the browser. I have prepared a code trying to achieve the same, but this code runs much slower, the frames per second rate is very low, and causes different exceptions after few minutes of running the application. Please take a look and tell me how to achieve the same high performance of capturing a browser rendering window each frame? The solution is a WPF Application named "WpfWebBrowserApplication" and requires PresentationCore, PresentationFramework, ShDocVw, System.Drawing references. <Window x:Class="WpfWebBrowserApplication.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.5*"></ColumnDefinition> <ColumnDefinition Width="0.5*"></ColumnDefinition> </Grid.Co

Error 400 when hosting windows streaming service.

WCF, .NET 3.5:I'm sorry if this is redundant, but I'm having problems receiving error: 400 requests. My particular issue is this: If I select my service library within VS the library is test hosted and I can stream large files. My problem is getting a windows service configured to host this service library. I can transfer small files but larger ones are failing with the following stacktrace: <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent"> <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system"> <EventID>262155</EventID> <Type>3</Type> <SubType Name="Error">0</SubType> <Level>2</Level> <TimeCreated SystemTime="2009-11-18T19:58:07.7808550Z" /> <Source Name="System.ServiceModel" /> <Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /> <Execution ProcessName="ExtractorTestClient.vshost" ProcessID="10768" ThreadID="9" /> <Channel /> <Computer>MyComputer</Computer> </System> <ApplicationData> <TraceData> <DataItem> <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"> <TraceIdentifier>http://msdn.microsoft.com/en-US/library/Syste

Capturing 'View Report' Button Event

My report contains 2 dropdown lists. The 2nd dropdown list will be populated based on the selection of the first. I need to call an insertion method that will insert the selected values of the dropdown lists into the database when the 'View Report' button is being clicked. Is there a way to capture the 'View Report' button's event? Thanks in advance. (By the way, I am using SSRS 2005.)

this might sound really strange..

Hello guys, I hope this is the right forum to post this. Anyway,  before i replaced my HD with a new one, i backed up everything on an external HD. After installing windows XP, i installed VWD2008 and all was good, then i tried to install SQL server 2005. have no idea why a blue screen popped up. anyway i had no other solution rather than Restoring the System.After system restore, i found out that all of my aspx.cs files are GONE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ALL OF THEM.and the strangest thing is that they were deleted from the external HD i had!i did a little research in google. i've found out that system restore might delete *.CS files as they were system files.Okay i might understand that. BUT.. why they were deleted from the external hard drive also?IM really confused.. u really dont care right now what caused this.. i just need help with getting all of my CS files backis there any way ? other than using Reflector software or any Recovery softwares, cuz it did not help at all. PLEASE. HELP ME ASAP!
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend