|
|||
|
please tell me
i use that code it work well. ;D but it save entire sound at once when the time completed or user stop it i want that it will save after 15 seconds in the same sound file without overwritting it. it add the sound in the excisting one sound. so it the software close due to any problem then some of the sound will saved. i try to use the recordMode command but i don't know how to use it m = new MCI; m.deviceType = "waveaudio"; m.fileName = ""; m.wait = true; m.recordMode = false m.command = "open"; //set the time format to milliseconds m.timeFormat = 0; //Set the record length to 10 seconds m.to = 0x8FFFFFFF; m.wait = false; m.notify = true; m.onNotify = saveFile; m.command = "record"; function saveFile() { m.notify = false; //save the recording to file m.fileName = res+".wav"; m.command = "save"; m.command = "close"; } thankx ;D |
|
|||
|
//this is start recording button coding
m = new MCI; m.deviceType = "waveaudio"; m.fileName = ""; m.wait = true; m.recordMode = false m.command = "open"; //set the time format to milliseconds m.timeFormat = 0; //Set the record length to 10 seconds m.to = 0x8FFFFFFF; m.wait = false; m.notify = true; m.onNotify = saveFile; m.command = "record"; function saveFile() { m.notify = false; //save the recording to file m.fileName = res+".wav"; m.command = "save"; m.command = "close"; } //this is stop recording button coding m.notify = false; //save the recording to file m.fileName = res+".wav"; m.command = "save"; m.command = "close"; Dialogs.msgBox("file saved at "+res,"Save...",80) // now tel me where and wht change i ll to to save recorded file at every 15 sec in same file eg:.like DAP software does(but it is just a example my data is live streaming sound) i want to record live radio songs and save them to a file but my program doing else it do not show and save recorded file until i press stop button after stop it give me a file with all recoded sound... but if any error came then it loss all work like i start for 1 hour and suppose 45 min passed and a error came then i ll lost all the data and give me nothing. so i want it ll record and save side by side so less chance to loss much data regard js |
|
|||
|
i tried a lot to upload sample on this forum but it is not working
so i am giving a link of my program sample please download it and remove the error http://jasbir.vndv.com/rec%20samp.zip i hope it ll work regards js |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|