Hi Guys,
Is it Possible to record Sound from a Playing Audio CD in Drive. ie., I need to Convert a Select Audio CD Track to Wave Audio. I think it can be done with mciSendString. Any Ideas Please... Thnx in Advance....
Printable View
Hi Guys,
Is it Possible to record Sound from a Playing Audio CD in Drive. ie., I need to Convert a Select Audio CD Track to Wave Audio. I think it can be done with mciSendString. Any Ideas Please... Thnx in Advance....
This code will basically record any sound that comes out of the speakers.
VB Code:
Private Declare Function mciSendString Lib "winmm.dll" _ Alias "mciSendStringA" (ByVal lpstrCommand As String, ByVal _ lpstrReturnString As Any, ByVal uReturnLength As Long, ByVal _ hwndCallback As Long) As Long Private Sub Command1_Click() mciSendString "open new type waveaudio Alias record", 0&, 0, 0 'open WaveAudio called Record mciSendString "record record", 0&, 0, 0 'begin recording 'Play sound End Sub Private Sub Command2_Click() mciSendString "stop record", 0&, 0, 0 'stop recording mciSendString "save record C:\Windows\Desktop\MyWav.wav", 0&, 0, 0 'saves recording mciSendString "close record", 0&, 0, 0 'closes record and saves to file End Sub
Hi Gates,
Got ur code. Is it Possible to record the Wave file from a CD Track without making the CD to Play. Because I have seen many MP3 Encoders to Encode the Song from a CD without Playing the CD Track. Is it Possible....?
Try searching PSC for your answer.
Hi Mathew Gates,
I tried your example but I'm able to hear nothing from the wave file. Just only a flash of sound is heard and the rest of the wave file is empty. What may be the problem. Hope you understand my Problem. Any Solution you would like to give....?
lvramanan, click on the small icon in your taskbar that looks like a speaker. Than click Options and go to Properties, than click the Recording Options and select Ok. And raise your sound through there. You should be able to hear it fine since you raised the volume. And record longer, perhaps? Press the record button and play an Mp3.