Click here to Skip to main content
15,889,879 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: combo box Pin
Hamid_RT25-Oct-07 20:22
Hamid_RT25-Oct-07 20:22 
GeneralRe: combo box Pin
Paulraj G25-Oct-07 21:40
Paulraj G25-Oct-07 21:40 
GeneralRe: combo box Pin
Hamid_RT25-Oct-07 21:56
Hamid_RT25-Oct-07 21:56 
JokeRe: combo box Pin
Nelek28-Oct-07 23:11
protectorNelek28-Oct-07 23:11 
GeneralRe: combo box Pin
Hamid_RT29-Oct-07 4:27
Hamid_RT29-Oct-07 4:27 
JokeRe: combo box Pin
Nelek29-Oct-07 21:11
protectorNelek29-Oct-07 21:11 
GeneralRe: combo box Pin
Hamid_RT26-Oct-07 0:13
Hamid_RT26-Oct-07 0:13 
Questionaudio recording problem with mciExecute(). Pin
kadkir25-Oct-07 20:00
kadkir25-Oct-07 20:00 
I am developing a web application in that I need to record audio, for that I am importing "winmm.dll" and using mciExecute function.(the following code is vb.net). If I have posted in irrelavent forum please let me know where should I post questions related to audio and video (for web development).
<code>
Imports System.Runtime.InteropServices
Imports Microsoft.VisualBasic
Imports Microsoft.VisualBasic.Devices

Partial Class audioRec
Inherits System.Web.UI.Page
<DllImport("winmm.dll", EntryPoint:="mciExecute", CharSet:=CharSet.Ansi, SetLastError:=True, ExactSpelling:=True)> Private Shared Function mciExecute(ByVal lpstrCommand As String) As Boolean
End Function

Protected Sub BtnStart_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnStart.Click

mciExecute("open new Type waveaudio Alias recsound1")
mciExecute("set recsound1 time format ms bitspersample 16 channels 1 samplespersec 11025")
mciExecute("record recsound1")



End Sub

Protected Sub BtnStop_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnStop.Click
mciExecute("save recsound1 c:\\record.wav")
mciExecute("close recsound1 ")

Dim c As New Computer
c.Audio.Stop()
End Sub

Protected Sub BTNplay_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BTNplay.Click
Dim computer As New Computer
computer.Audio.Play("c:\\record.wav", AudioPlayMode.Background)
End Sub
End Class
</code>
but when I am clicking the start button "the order in which you are passing parameters is invalid please correct the order" msg is getting displayed. I need to to record an audio file in "8khz, 16 bit, mono" format. How can I meet this requirement.

i will be thankful for ur suggestions..

with regards,
kiran
AnswerRe: audio recording problem with mciExecute(). Pin
Hamid_RT25-Oct-07 20:23
Hamid_RT25-Oct-07 20:23 
QuestionApplication failed to start because .dll not found Pin
ashishbhatt25-Oct-07 19:57
ashishbhatt25-Oct-07 19:57 
AnswerRe: Application failed to start because .dll not found Pin
Anu_Bala25-Oct-07 20:21
Anu_Bala25-Oct-07 20:21 
GeneralRe: Application failed to start because .dll not found Pin
ashishbhatt25-Oct-07 20:40
ashishbhatt25-Oct-07 20:40 
AnswerRe: Application failed to start because .dll not found Pin
Hamid_RT25-Oct-07 20:32
Hamid_RT25-Oct-07 20:32 
GeneralRe: Application failed to start because .dll not found Pin
ashishbhatt25-Oct-07 20:45
ashishbhatt25-Oct-07 20:45 
GeneralRe: Application failed to start because .dll not found Pin
Hamid_RT25-Oct-07 20:51
Hamid_RT25-Oct-07 20:51 
GeneralRe: Application failed to start because .dll not found Pin
ashishbhatt25-Oct-07 20:56
ashishbhatt25-Oct-07 20:56 
GeneralRe: Application failed to start because .dll not found Pin
Hamid_RT25-Oct-07 21:25
Hamid_RT25-Oct-07 21:25 
GeneralRe: Application failed to start because .dll not found Pin
ashishbhatt25-Oct-07 21:41
ashishbhatt25-Oct-07 21:41 
GeneralRe: Application failed to start because .dll not found Pin
Hamid_RT25-Oct-07 22:02
Hamid_RT25-Oct-07 22:02 
AnswerRe: Application failed to start because .dll not found Pin
Cedric Moonen25-Oct-07 21:34
Cedric Moonen25-Oct-07 21:34 
GeneralRe: Application failed to start because .dll not found Pin
ashishbhatt25-Oct-07 21:58
ashishbhatt25-Oct-07 21:58 
AnswerRe: Application failed to start because .dll not found Pin
ashishbhatt25-Oct-07 22:02
ashishbhatt25-Oct-07 22:02 
GeneralRe: Application failed to start because .dll not found Pin
Cedric Moonen25-Oct-07 23:09
Cedric Moonen25-Oct-07 23:09 
AnswerRe: Application failed to start because .dll not found Pin
Peter Weyzen25-Oct-07 22:19
Peter Weyzen25-Oct-07 22:19 
AnswerRe: Application failed to start because .dll not found Pin
ThatsAlok28-Oct-07 23:13
ThatsAlok28-Oct-07 23:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.