Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-24-2007, 04:03 PM
js js is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Default Save Sound after 15 seconds or user defined

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
Reply With Quote
  #2 (permalink)  
Old 08-27-2007, 11:29 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Save Sound after 15 seconds or user defined

Please send us a sample, we will help you to make it work.
Reply With Quote
  #3 (permalink)  
Old 08-29-2009, 06:36 PM
js js is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Default

//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
Reply With Quote
  #4 (permalink)  
Old 09-05-2009, 08:58 PM
js js is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Default

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
Reply With Quote
  #5 (permalink)  
Old 09-08-2009, 06:37 PM
js js is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Default

!!!!!!!!!!!!! hey swfkit ... where are you.....

are you ppl gone for a long holiday?????????????
Reply With Quote
  #6 (permalink)  
Old 09-13-2009, 06:49 AM
js js is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Default

i posted u sample ....... where are u swfkit staff ....... this is urgent .........
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:32 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.