Flash :: Low-latency Audio Synthesis?

Apr 7, 2012

When synthesising sound using the SAMPLE_DATA event of the Sound class, the Flash documentation recommends writing out as many samples as possoible up to 8192. On my system the sound cuts out unless I write at least 4192 samples each event. That's a full tenth of a second, which is going to be user-noticeable.

I may have the option of buffering things up ahead of time, but this is a major annoyance for my application.Is there any way of getting lower latency audio output?

View 1 Replies


Similar Posts:


Actionscript 3 :: Low-latency Audio Streaming In Flash?

Mar 6, 2012

Suppose there is a live WAV stream that can be reached at a certain URL, and we need to stream it with as little latency as possible. Using HTML5 <audio> for this task is a no-go, because browsers attempt to pre-buffer several seconds of the stream, and the latency goes up accordingly. That's the reason behind using Flash for this task. However, due to my inexperience with this technology, I only managed to get occasional clicks and white noise. What's wrong in the code below?

var soundBuffer: ByteArray = new ByteArray();
var soundStream: URLStream = new URLStream();
soundStream.addEventListener(ProgressEvent.PROGRESS, readSound);[code]....

View 1 Replies

Media Server :: Reduce Audio And Video Latency In Flash?

Sep 22, 2010

We have one functionality in which one user can communicate with the other user at the same time through flash media server3.5. In this fucnitonality we are catching stream from both end through camera and pass it to flash media server. On FMS side this streams gets stored also we are displaying those recorded flv files side by side to the corresponding user so that they can communicate with each other. In this situation we are facing a video and audio latency upto 1.5 to 2 sec.

View 2 Replies

Media Server :: Settings For Audio Latency

Oct 21, 2010

I can't find the setttings for have a least latency as possible, either the video quality is bad or the latency is up than 5 secondes...What should i do?

[Code]...

View 7 Replies

Media Server :: Live Video/audio Chat Application - Latency Time Using FMS 3.5 And FLEX

Dec 9, 2010

I've build a live video/audio chat application. All works fine only the issue is latency of 5 secs. I'm using FMS 3.5 and FLEX.

View 1 Replies

Javascript :: Web-based Music And Sound Synthesis?

Feb 23, 2010

What cool web-based examples have you seen that generate music dynamically by the user? Either based on samples with an interesting interface, by sound synthesis or similar methods.Example: http://acko.net/blog/javascript-audio-synthesis-with-html-5Has any serious web-based dynamical sound synthesis been done yet (e.g. generating sine waves dynamically and similar), or are there still inherent technological boundaries to do so?What are your general thoughts about generating music dynamically on the web? Is any form of more involved generation still too CPU-intense? Be it using Flash, JavaScript or audio-tag. (Sadly all my efforts have been far too CPU-intense, and not a very satisfying experience for the user.)

View 5 Replies

ActionScript 3.0 :: Additive Synthesis - Playing Multiple Generated Sounds?

Sep 7, 2010

Inspired by Andre michelle, I`m building a tone matrix in AS3. I managed to create the matrix and generate the different sounds. They don�t sound that good, but I�m getting there One big problem I have is when more than one dot is set to play, it sounds just horrible. I googled a lot and found the additive synthesis method but don�t have a clue how to apply it to as3.

View 2 Replies

Flash :: Actionscript - Remove The Audio - Put The Audio Into A Byte Array And Then Re-add The Audio To The Flv Video?

Aug 6, 2010

If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?

View 1 Replies

Flash :: Measure Ping Latency In Red5 Mediaserver?

May 24, 2010

Only thing I found is QoS statistic in NetConnection.info, but it does not contain any kind of latency values.

In red5 API "IConnection.getLastPingTime()" exists, is it accessible over standard Flex API or I need to poll it by RMI calls?

View 1 Replies

Flash :: Audio Player That Can Play Binary Audio Streams?

Apr 13, 2011

My server is streaming binary audio data (mostly mp3 files) to a client (a browser). This client stores the audio data in memory.

What I'm looking for is a flash audio player that I can input the binary audio data so that it can play the audio file.

Preferably, the flash client is merely a bridge to Javascript so that I can handle everything in Javascript and simply use Flash's audio features, but this is not a requirement.

View 1 Replies

Flash :: Start And Stop Audio From The Middle Of Audio Track?

Apr 25, 2011

I have a single audio file, I'd like to avoid cutting it up.

I know I can use the sound class, mySound.play(150), to start at 150ms but haven't come across a way to stop the audio say after 500ms or at 650ms.

View 2 Replies

Html :: Flash Audio Player For M4a (AAC) Audio File Embedded?

May 15, 2007

I'm looking for a (free) flash player that I can embed in my site and use to play a .m4a (.mp4 with AAC audio) file that will be obtained using a URL (i.e. it's not local to the server hosting the web page).I've tried searching on google for one, but either I'm searching wrong or no one has made such a thing. Ideally this would be very simple (small user interface with play button and maybe a progress bar) and it would be easy to have multiple instances of on an html page (can create the player with an <object> tag).

View 7 Replies

ActionScript 3.0 :: Way To Detect Latency

Apr 21, 2011

I need to calculate the latency means time difference between the two user machines the scenario is: 1. App 1 publishes stream 2. App 2 play the stream published by App 1 Now in App 2 I need to show the time difference between the App 2 and App 1 time. Say if current time on App 1 is 10:46:30 and on App 2 it is 10:50:20 then need to display the difference. How to send the time value to App 2 from App 1 as time zones for the two users may be different.

View 1 Replies

Flex :: Test Latency Of Messages?

Aug 14, 2011

I have a system where clients connect via http streaming channels and use Producer and Consumer classes to dispatch and receive messages. I need to test the latency of messages in a way that adequately simulates real-world usage when the server is under load. I have 3 ideas for how this may be accomplished. Has anyone tried and succeeded or failed with these methods?

View 1 Replies

Media Server :: Lower Latency Via The Client?

Sep 29, 2009

Is a latency of 94 - 109 high or low....if its high how do I lower it via the client I don't have control over the server at this point in time.

View 2 Replies

Actionscript 3 :: Game Network Latency Compensation?

Mar 5, 2012

I am developing a simple fast-paced 2 dimensional real-time multiplayer game in Flash. Players can only shoot and walk in point to move fashion. I use TCP socket connection (AS3 doesnt offer UDP).All I want is to synchronize players' actions so Player1 could see the same on its screen as Player2,Player3... or just see close representation (position,taking damage,etc).

I know movement vector coordinates and I can easily interpolate on them using latency. However,I can not figure out an effective way to determine how much time (T1) did it take the state update to travel client1-server-client2 and then make corrections to client2's screen based on T1.(You know, ping times may fluctuate quite a bit).I need a way to do the above-mentioned, i need way which is as fast and as accurate as posssible but not extremely sophisticated. (what algorithm should i use?

View 1 Replies

ActionScript 3.0 :: Sound Latency On Windows But Fine On Mac?

Jul 23, 2009

I have a project that plays several sounds and triggering interaction on key presses. On mac everything is fine - the animation and the sound gets triggered simultaneously. However, when I port it to windows (either as a swf or exe projector), there seems to be a .5 second delay in the sound. I have to load the sound files from a local filesystem. I've tried pre-loading all the sound so I can just play the sound object when needed, but the latency is always there.

View 1 Replies

ActionScript 2.0 :: Sound Latency Bad In Windows Good On Mac

Oct 4, 2010

In the game there is a backing groove played by triggering one movieclip to play. The user triggers short sounds from buttons embedded in drag and drop movie clips to play along with the backing groove.

On Safari or Firefox on mac the timing is absolutely fine.

On IE on Windos XP there is enough latency to make it unplayable.

View 0 Replies

ActionScript 3.0 :: Rendering Latency In A Simple Animation?

Nov 28, 2010

I used to code with "Processing" so maybe I keep the same habbit when I code in AS3. I'm not really sure how to animate in a good way using Enterframe. I made a not so complex animation and I am suprised that there is a very bad latency when I run it. Maybe there is something I don't understand when I write Graphics.

At each Enterframe, I write a black rectangle with a 0.3 alpha to progressively erase old lines and just after I draw new lines.

Are these these Graphics lines and Graphics rectangles stay in memory? Do I have to delete it when they visually disapear from the stage?

Code:
package
{
import flash.display.MovieClip;
import flash.events.Event;

[Code].....

View 4 Replies

Detect Latency When Playing Live Video Streams From FMS?

Sep 25, 2010

Because of network latency,there will always be latency, how to know how many seconds the latency is with ActionScript?

View 2 Replies

ActionScript 3.0 :: Playing Sound In Bytearray To Kill Latency?

Oct 17, 2011

if i will load my mp3 to bytearray and then play the bytearray it will beat the latency we have in playing sounds normally?

View 1 Replies

Media Server :: Video Delay Continuously Increasing Latency?

Jun 3, 2010

I'v made an application with all the default codec and settings provided by adobe to publish live video using FMS. I've made two swfs one is for publishing live video and the other is for viewing the published stream (telecast). When I'm publishing the live video on My laptop using the default web Cam and mic attached to the Dell laptop then after 2- 3 minutes delay on the telecast side start increasing and it keep on increasing continuously .At the same time when I use my desktop PC by attaching external Web Cam and mic to publish, delay on my Telecast side is consistent ,it never increase. I found the problem is with the Laptop's mic. Can anybody please suggest me why it is happening, and is there any solution to it.

View 4 Replies

Java :: Verify Contribution Of Client-server Network Latency In Application Performance

Sep 24, 2011

We have a typical Flash+J2EE application that makes multiple requests from client to server (over Flex remoting), which is taking quite a long time on some client systems (and hence results in poor application performance on such systems).

Now, suspecting issues with network connectivity (latency) on such client system(s), we need to identify how far does it contribute to the slow response of the application (rather than performance issues in the application itself).

So, what are the best way(s) to diagnose this on a client system (Windows)?

Note that we have tried profiling our application, which does not indicate bottlenecks there, so we just need to clearly identify the possible network issues.

View 1 Replies

Media Server :: Make In FMS Files(xml Files) In Order To Reduce The Latency

Sep 8, 2009

iam streaming my web cam to FMS .... i have got a latency of 1 -2 second,,,,,, What should i do to reduce the latency,,,,,, is ter any change i can make in FMS files(xml files) in order to reduce the latency......

View 6 Replies

Media Server :: Latency Is Coming In Fms4 Peer To Peer Communication

Nov 17, 2010

I am developing peer to peer video conference application with FMS4 but there is some latency problem.

View 1 Replies

Media Server :: Latency Coming On One Side In Peer To Peer Connection?

Dec 22, 2010

We developed one video chat application in which one user can chat communicate with anohter user. Latency is coming on one side in peer to peer connection.

View 2 Replies

Media Server :: Fms 3.5.2 - Video / Audio Streaming Application - Audio Stops Or Lags Behind

Aug 25, 2009

I ran a simple live video streaming application for the first time with actual users and ran into a couple of serious performance issues that had not turned up during testing. In this instance there was one video stream from a live web cam and used FMLE at 150 kbps using VP6 and MP3 @22k. There were 16 clients and everything worked pretty good for about 30 minutes. (although some clients said their audio and video were out of sync by up to 3 seconds)

Then individual clients would have either the video freeze or the video would continue and the audio would stop. These clints had to "disconnect" and then "connect" again to the application. This happened to all of the clients at one time or another for several minutes. I stopped and restarted the FMLE with progessively lower bandwidth settings down to 75 kbps but still clients were having the same issue.

I eventually stopped the FMLE and used the applications built in publisher at 45 kbps and that seemed to eliminate the freeze/dropping issue. But of course the video quality was very poor and some clients still reported that the audio was out of sync with the video. The server hosting the FMS application is a quad processor dell with lots of memory and network connectivity. The Flash Media Admin Console performance graph showed the total Bandwidth as 3 Mbps at maximum.

View 8 Replies

Asp.net :: Skinnable Audio Player (or Something Similar To Windows Vista Audio Control In Task Bar) For The Web?

Mar 11, 2010

Anyone know of a skinnable audio player (or something similar to Windows Vista audio control in task bar) that i can embed in my website?

A player that can be customized to use a 'speaker' icon instead of a 'play' icon. When the speaker is clicked, the volume can be adjusted or turned off. The option of being able to autoplay and set the default volume level.

View 1 Replies

CS4 Media Encoder Audio - Audio Sound Stops After A Few Seconds From The Beginning?

Aug 4, 2009

I am converting from .FLV's to .F4V. Video outputs fine but the audio sound stops after a few seconds from the beginning.I have tried many different settings for the audio with no luck. Also, tried on a colleague's machine who is running CS3, which works fine, so something is buggy in CS4...

View 1 Replies

ActionScript 3.0 :: Audio Synchronization - If The Audio Were On The Timeline You Could Set Sync Params To Stream?

Mar 11, 2010

Because the player optimizes framerate, antialiasing etc dependent on the performance capabilities of the platform upon which it is running, it was nearly impossible to ensure animation syncronization w/ audio. If the audio were on the timeline you could set sync params to stream, but if the audio is loaded programically forget it .. well until AS3 ..The following code throttles the player framerate to lock step the animation to the audio .. not perfect but the principal works ..

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved