User Tools

Site Tools


capturing_20audio_20using_20mci

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

capturing_20audio_20using_20mci [2018/03/31 13:19]
127.0.0.1 external edit
capturing_20audio_20using_20mci [2018/04/15 11:52] (current)
richardrussell Added syntax highlighting
Line 1: Line 1:
 =====Capturing audio using MCI===== =====Capturing audio using MCI=====
  
-//by Richard Russell, October 2010//\\ \\  The article [[/​Inputting%20real-time%20audio|Inputting real-time audio]] describes how to input audio data and make it available to your program for display, analysis or capture. If you simply need to record audio to a WAV file you can use that technique, but a much easier method is to use the capture facilities built into the Windows **Media Control Interface** (MCI).\\ \\  The potential disadvantage of this method is that MCI is an old technology and it's not clear to what extent it will continue to be supported. For example in some versions of the Platform SDK Documentation the **mciSendString** function is bluntly stated to be "Not supported in 64-bit versions"​ although that remark has been removed from the current MSDN [[http://​msdn.microsoft.com/​en-us/​library/​dd757161.aspx|article]].\\ \\  The code below illustrates how to capture audio data to a file:\\ +//by Richard Russell, October 2010//\\ \\  The article [[/​Inputting%20real-time%20audio|Inputting real-time audio]] describes how to input audio data and make it available to your program for display, analysis or capture. If you simply need to record audio to a WAV file you can use that technique, but a much easier method is to use the capture facilities built into the Windows **Media Control Interface** (MCI).\\ \\  The potential disadvantage of this method is that MCI is an old technology and it's not clear to what extent it will continue to be supported. For example in some versions of the Platform SDK Documentation the **mciSendString** function is bluntly stated to be "Not supported in 64-bit versions"​ although that remark has been removed from the current MSDN [[http://​msdn.microsoft.com/​en-us/​library/​dd757161.aspx|article]].\\ \\  The code below illustrates how to capture audio data to a file: 
 + 
 +<code bb4w> ​
         REM Record audio using MCI         REM Record audio using MCI
  
Line 41: Line 43:
         PRINT "​Captured audio is stored in " wavfile$         PRINT "​Captured audio is stored in " wavfile$
         END         END
 +</​code>​
capturing_20audio_20using_20mci.txt · Last modified: 2018/04/15 11:52 by richardrussell