on Linux, playing or recording some sound, / dev / dsp is simply read or written. But how to do the same in windows? (with C)
There is no static device name, you should use functions waveOut*, herea good example of using these APIs.
waveOut*
here
The Media Management Interface (MCI) provides standard commands for playing media devices and recording media resource files. These commands provide a common interface for almost all types of multimedia devices.
, MCI_OPEN, mciSendCommand. . http://msdn.microsoft.com/en-us/library/dd743441%28VS.85%29.aspx.
/ apis: http://msdn.microsoft.com/en-us/library/ee663260%28v=VS.85%29.aspx
Source: https://habr.com/ru/post/1782783/More articles:MSI installer starts auto repair when service starts - windows-installerInsert my own illegal characters in Path.GetInvalidFileNameChars () in C # - c #Нужна помощь по созданию этого jQuery - javascriptCan I automatically join the life cycle of ANY server-enabled HTML tag? - asp.netHow to implement text selection? - language-agnosticProviding another action without changing the url? - ruby | fooobar.comCount letters in a word in python debugging - pythonSending mail with an embedded image in ASP.NET - c #Mysql 4 vs Mysql 5 поле автоинкремента при вставке - nullXMLRPC Zend_Http_Client_Adapter_Exception 'с сообщением' Время ожидания проверяется через 10 секунд - phpAll Articles