/dev/dsp windows alternative

in Linux playing or recording some audio is just read or write /dev/dsp But how to do the same in windows ? (with C)

Answers


There is no static device name, you should use waveOut* functions, here is a nice example of using those APIs.


The Media Control Interface (MCI) provides standard commands for playing multimedia devices and recording multimedia resource files. These commands are a generic interface to nearly every kind of multimedia device.

You can open a device using MCI_OPEN and can send the command using mciSendCommand function. Refer http://msdn.microsoft.com/en-us/library/dd743441%28VS.85%29.aspx for more details.

Or you can also use audio/video apis: http://msdn.microsoft.com/en-us/library/ee663260%28v=VS.85%29.aspx


Need Your Help

Passing value of item clicked in list view from one screen to another in android

android android-intent bundle listactivity

I am trying to send the item clicked in list to another screen but getting an error...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.