|
|||
|
Hi,
I used simply recording code as follow, which work fine with XP var sFileName = String(Application.cmdItems[0]); var iSec = String(Application.cmdItems[1]); m = new MCI; m.deviceType = "waveaudio"; m.fileName = ""; m.command = "open"; m.timeFormat = 0; m.to = iSec * 1000; m.notify = true; m.onNotify = onNotify; m.command = "record"; function onNotify(flag) { if (flag == 1) { //save the recording to file m.notify = false; m.fileName = sFileName; m.command = "save"; m.command = "close"; } } But it doesn't work in Vista. For some path, a 0 kb wav file would be created and record nothing. Does MCI work in Vista? If not, what else I should use? Thanks |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|