AS3 :: Click Sound At The Start Of Recording?
Dec 15, 2011
I'm currently recording sound and storing the byte array for playback and subsequent encoding to mp3.
Unfortunately though I am getting a click sound at the very beginning of the recording.
I have attempted a couple of methods to try to eliminate this such as:
recording the first .3 seconds with mic.gain = 0; then setting mic.gain = 50; clearing the byteArray after the first .3 seconds then continuing to write the bytearray (in effect deleting the first .3 seconds of the recording.)
Neither of those methods has stopped the click being added.
how I can prevent the click from being added?
Here is my recording/storing code:
public var mic:Microphone = Microphone.getMicrophone();
public var micSilence:uint;
private var soundBytes:ByteArray = new ByteArray();
private var soundBA:ByteArray = new ByteArray();
[Code].....
View 1 Replies
Similar Posts:
Aug 23, 2011
i know this is a problem allread often talked about, but i cant solve it.i want to start and stop a sound with a mouseclick event.the problem seems to be that the click event is never triggered. can anyone see why?
[Code]...
View 3 Replies
Jan 13, 2005
I've been asked to produce a flash production that at one point records a time. The basis is that when a object hits another objects (both set as movie clips) flash tells the user ina dynamic text field how long the collision took to happen. i have everything working except from the timer. it recognises that the collision happens and text appears in the text field to show that, but still no idea how to make flash start timing when the frame is started and stop (and show) when the collision is made.
View 1 Replies
Jan 14, 2010
i'm developing a web site, and i'm trying to let the user record some video from his webcam. I'm using actionscript and flash media server. I got it work in my delevoper enviroment, but when i deployed it to the production server, the webcam can't get connected to the FMS. I'm afraid this is because of port blocking from the firewall. Does anyone knows wich ports are userd for recording from a browser by the Flash Media Server? I open the 1935 port in the Flas Media Server, but it still doesn't work.
View 19 Replies
May 19, 2011
I want to save a loaded sound in FMS .
public function Record()
{
nc.connect("rtmp://192.168.1.2:1935/videoRecorder");
[code]....
View 1 Replies
Jul 11, 2009
*I've been trying to develop a recording application, it is my first real programming project, so bear with me. What it is is a simple Audio Recorder that records sound directly from the Sound-Card. In other words, what you hear and what comes through the speaker is what is recorded. Many of you may be familiar of this process as a component of the Audacity application by selecting the recording type as Stereo-Mix.*
In making this, I could not find a way to access the users Sound Card directly using actionscript. So what I'm asking is, is there a way to access a users soundcard through AS3 or is it impossible? If there are no pre-built libraries or functions that can do it, would it be possible for me to create one that will help me gain access to the sound card?
View 9 Replies
Jun 7, 2011
If one wants to record sound from the microphone input in the browser one can do so today through Flash. (Afaik there is currently no other good option which works across browsers.Is there a simple swf-plugin which allows one to do so? That is,with the options "Start recording", "Stop recording", "Get wave of recorded sound (or similar)".
View 2 Replies
Mar 14, 2003
Is there any way to provide the functionality of sound recording (e.g. record, stop & play) in flash MX?
View 12 Replies
May 19, 2007
I'm actually working on a website where I want to integrate an online mixer such as[url]...I would like that after the user create his mix, he can record it and save it to a DB.
View 9 Replies
Sep 6, 2011
how could i record the precise time(in milliseconds) where sound effects are being played. This is what i have in mind/ or what i have done so far as an example: i start clicking the 'record button' and the timer starts.Then i play a sound effect and the time elapsed is 1.444 seconds,after that i stop the recording. What i was doing is push the values of the timer elapsed into an array as a string. So when i hit the 'play recorded clip' button, the timer starts again but this time:
it is constantly checking for the timerOn the example i have stated above; when the time elapsed at 1.444 seconds, i expect the sound i've played when i recorded to play. I have the methods needed to fire away the specific sound effect.
[Code]....
View 3 Replies
Nov 21, 2010
I have a long mp3 file hosted on a standard apache server (30 minutes long so far, but I would like it to work with longer sounds too).I'd like to start playback of this audio within at a specified point. When attempting to use Flash Actionscript 3, my basic tests show that ALL the audio from the start to the position I choose is buffered before playback (Sound.bytesLoaded was my friend here). If I start one second in, it takes about 3 seconds to start playback, 30 seconds in, takes about 25 secondsObviously with a really long mp3, like skipping playback to the middle of a 3-hour audiobook, this isn't going to be practical.Here's the ActionScript 3.0 code I'm using:
button.addEventListener(MouseEvent.MOUSE_DOWN, function():void {
var s:Sound = new Sound();
var req:URLRequest = new URLRequest("http://example.com/audio.mp3");
[code].....
View 1 Replies
Apr 28, 2009
I was wondering if there was a way a user could click a button to record a sound that would be stored to a sound clip and played back by the click of a button?
In other words, can I dynamically record a sound from my mic into a sound clip in an .swf?
View 1 Replies
Mar 3, 2010
How can I record and save sound in flash AS3. I have writing access to the server and also access to PHP files.
View 1 Replies
Mar 23, 2011
1) I don't understand the difference between flex and actionscript. I understand AS is used to write flash apps but what is flex?
2) I am going to create a flash app for recording sound which is then processed by dll's written in c++. Can this be done in flash? I don't want the flash app to communicate with dll's on a web server, I basically want to load the dll's for direct use into the flash app.
View 8 Replies
Dec 16, 2005
I'm trying to load sound dynamically into a clip and then play it randomly. The AS I came up with works great if the sound is embedded and I use the .attachSound() method instead of loadSound(). Now, when I load it dynamically and use the code below, the sound plays very fast and at a higher pitch.
Code:
var crows = new Sound(this);
crows.loadSound("Raven.mp3", false);
crows.setVolume(100);
[Code].....
View 1 Replies
Feb 22, 2011
I am currently an English teacher and I am familiar with programming in DOT.Net platform. I am completely new to Flash. I turned to this platform because I thought that would be the best way to prepare interactive computer based exams in English. My real problem is, I don't have the slightest idea as to how I can create a Flash application which records the sound through the microphone and saves it on the local disk.
View 1 Replies
Nov 11, 2009
I am totally new to Flash Media Server I need to be able to record sound via a Flash app and save it to a server preferably without the use of a Flash Media Server type setup. There is no requirement for live streaming. Is it possible to record the sound and save in memory then pass the data/file as a query parameter to the server?
View 2 Replies
May 4, 2009
While recording the flv is saved inside applications/stream/samples/audio.flv. But it is not working properly.[code]
View 1 Replies
Aug 5, 2010
Need to make a character start to talk when the sound starts and stop talk when the sound stops so I'm using this:
[Code]...
View 2 Replies
Oct 4, 2011
i have build a small test app in Flash Pro 5.5 overlayed with the AIR 3 sdk.is has just 2 buttons to record and playback audio from the microphone. when i test this on my iPhone 3g - i record myself saying "1-2-3-4-5". but when i playback a half a second or so is missing from the beginning : "3-4-5-".
when i test this on the desktop all is fine is this a result of the iPhone 3g's cpu power or is it a bug or is it my code?
[Code]...
View 4 Replies
Dec 5, 2009
so suppose I have a long sound recording as part of a Flash presentation.Can I put on the presentation a scrollbar and start /stop/ pause/ resume buttons as in Media Player or Windows sound recorder that would allow me to scroll to basically jump to any moment in the sound recording? So I guess, I am asking, can such typical sound player functionality be implemented for a Flash presentation in Flash.If there are sample apps that already demonstrate how to write similar code, links
View 1 Replies
Jun 17, 2009
I am creating an animation with very few controls for a presentation and it requires adding sound. I have my intro in the first frame with one sound and then want the user to click anywhere to start the animation and another sound.The problem I am having is sound control.No matter what I try the sounds overlap. I have managed to stop the first sound when going to the next frame - the animation, but the second sound now will not start. The first sound is called in from the library with the below code:
var snd = new Sound();
snd.attachSound("Tune");
and stopped when going on the next frame with:
[code].....
View 1 Replies
Jun 28, 2009
I wish to be able to play a voice sound every 3 minutes. I have the sound in "mp3' format and need to repeat the message every 3 minutes.
[Code]...
The actionscript 3.0 I wrote makes the sound once but that's it. I have the "Loop" on but it only runs once. I need a Timer also but until I can get the sound goes its a mute point.
View 26 Replies
Mar 5, 2010
I am trying to stop one specific mp3 file that plays throughout the whole document. But I don't want to use the off and on button. Instead when I press one of the pop-up buttons, I want a new sound to start in the pop-up window.
How do you stop the current sound that is playing and start the one on the pop-up? My main question is, is there a code that will stop current mp3, and start a different sound when the pop-up window is activated.
View 5 Replies
Apr 13, 2009
How can I start and stop sound by using actionscript 2.0?
View 1 Replies
Dec 27, 2003
In this tutorial [URL] it shows how to start a sound, and I got that down, but using a seperate button, how do you stop the sound? I cant figure that out.
View 2 Replies
Jul 8, 2009
PHP Code:
import flash.external.ExternalInterface;
snd = new Sound();
[code].....
View 1 Replies
Sep 24, 2004
[URL].. i am following these tuts but evrything is working fine but what i want is that my music should start playing immediately as it is loaded rather then waiting to click button to play...
[Code]...
View 2 Replies
May 13, 2009
I have used the actions panel to write a stop code on frame one of my timeline.When I test my movie it stays on the home page, which is good! I have also created an 'enter site' button on the home page. I want to click this button and have the timeline start rolling over to frame 50 (where my next label 'contents' will be). At frame 50 I want it to stop, and so on for all of my labels/pages. The action taking place on the timeline is a pan across a panoramic photograph, which will stop at different points.
View 7 Replies
Aug 13, 2009
I am looking for real simple scripting - I have a 15-25 frame flash tweened animation and all I would like to do is run thru the animation once then on mouse click go to frame one and start again. And of course I am under a time crunch and completely fogged with actionscript 3.0. I did some basic projects back in the director days and thought I could just pick up where I left off. If I remember right it was simple scripting like
gotoFrame
and
pause
etc...
View 3 Replies