Flash - Modify Sound In Real-time With SampleDataEvent For Audio Within NetStream?

Jan 27, 2011

I'm streaming audio using NetConnection and NetStream. I know that you can modify sample data in real-time with the Sound object, however I cannot find the SampleDataEvent for audio playing with the NetStream object. Is there a way to pass the audio from the NetStream object to a Sound object and modify the sound at that object instead?

View 2 Replies


Similar Posts:


Actionscript 3 :: Flash Player 10 Real-time Audio Playback?

Jul 13, 2009

I'm trying to playback some sample data through the new real-time audio capabilities of Flash Player 10. I started with the example given at the bottom of this page on livedocs, which seems to work fine and plays a crystal clear tone.I assume that the two writeFloat's in the example write to the left and right audio channels respectively and that the data being written is 32 bit (because of the float).

However. I seem to be having trouble converting my old 8 bit audio data to a format that is understood by this interface. When I playback my sample data I can vaguely hear the sound I'm expecting but it is massively distorted. My sample data consists of raw 8 bit samples that ranges from 0..255 where 127 is silence.

I've been trying different conversion formulas but I seem to be missing some vital information regarding this conversion.

UPDATE:The correct formula turns out to be:

f = (sample.data.readByte() - 127) / 255

View 2 Replies

Media Server :: Switch Audio Track In Real Time?

Jul 13, 2011

how to switch audio track in real time? For example, show the audio tracks and choose one of them.

View 18 Replies

Professional :: Modify Frames In A Voiceover (audio/sound) Timeline?

Feb 11, 2011

I'm trying to modify many .fla files (in CS3) that have a voiceover layer on them. Because I'm adding or deleting other items on the stage, I need to adjust the audio fo synch with the modified flash file. I have tried deleting frames and this happens - I select the unwanted frames, such as frames 200 to 300 of a 500 frame file. Then, the audio from frames 300 to 500 (at the end of the file) gets deleted instead.

I need to create gaps (like 200 frames of no sound) in the audio (.wav) file so I tried adding blank frames. When I click on "insert frames" in the middle of the timeline, Flash adds the new frames to the end of the sound timeline.

I also tried adding a keyframe at the beginnig of the range and Flash deleted all the frames after the keyframe.

It looks like any modification to the sound/audio layer only affects the end of the timeline. How do I modify sound parts in the middle of the timeline? I know this can be done but how?
 
Details: The audio layer (.wav) runs the whole length of the Flash file. The .wav file is a sound file in the Library;  22kHz Mono 16-bit 27.4s 12.1kb. The files were created in CS3. These files work fine.

View 1 Replies

Actionscript :: Audio - Analyze Sound Ahead Of Time?

Oct 11, 2011

I would like to create a game that would analyze an mp3 a few seconds ahead of where it is playing live. A basic idea would be similar to guitar hero, the 'frets' you can see coming and prepare, then they hit and sync with the song in real time.

Is there a way to analyze a Sound file ahead of time, or analyze a muted Sound file?

View 1 Replies

ActionScript 3.0 :: Audio Total Time Before Sound Complete

Oct 19, 2011

I have tried this too but the value keeps on changing as the sound load progresses.

View 3 Replies

Flash 9 :: Animations Updating In Real Time

Aug 21, 2008

We're currently building a fairly big dynamic website, and I was wondering if there was a way to have an animation that updates and move in real time as there's action on the site. Ex. red bulbs light up each time a user posts something on the forum or whatever. It'd be all related to the mysql database.

View 1 Replies

Synchronized, Real Time Viewing In Flash?

May 30, 2009

I'm looking to create something within Flash that I've not yet seen done.It will be a shared, real-time interactive session. What I want to know is, is it possible to create an individual, private session within Flash that is synchronized between two or more computers? I am doing this for the medical profession, but I can also see this would have benefits in the gaming community as well. I'm trying to create something that two specific users can interactively share in real time.

For example,a coloring book.Two players,or as many as you want, log in together and share a private coloring session. They will be able to interactively see anything that the other person is coloring in real time.The other people would also be able to color and let everyone else see their work.

View 1 Replies

ActionScript 2.0 :: Real Time Flash Thingie

Jan 3, 2008

I want to do a flash that changes based on the time of day. For example to load right .swf on container MC at the right time of the day.

View 1 Replies

Flash :: Multiple Audio To NetStream?

Sep 9, 2011

I am working on a video conferance projectthere will be a lecturer and an interpreter.interpreter will write the translated text simultaneously.what I am trying to is add vocal translation but I also want to keep the original audio is it possible to attach multiple audio to netStream or do I have to create another netStream for 2nd audio??

View 1 Replies

Possible To Create A Flash Character That Can Speak In Real Time?

Sep 28, 2010

Is it possible to create a flash character that can speak in real time?I want to create some characters that use the speech from my pc microphone (e.g. as I speak into my mic the character uses my voice to speak.

View 1 Replies

ActionScript 3 - Using Real Time Messaging Protocol In Flash

Jan 27, 2010

Flash can use the RTMP protocol to exchange data between a server and a client. How do you typically access this functionality in AS2 or AS3/Flex? For example to use sockets you use the XMLSocket (AS2) or Socket (AS3) classes. Does the server-side RTMP software use Sockets under the covers? or is it HTTP with tunneling?

The Real-Time Messaging Protocol (RTMP) was designed for high-performance transmission of audio, video, and data between Adobe Flash and a server. RTMP is now available as an open specification to create products and technology that enable delivery of video, audio, and data in the open AMF, SWF, FLV, and F4V formats compatible with Adobe Flash Player.

View 1 Replies

Flash 9 :: When Creating Shape -- Show Real-time W/H?

Oct 28, 2008

One thing that's really frustrating me about Flash is that the info panel doesn't display real-time width or height values.So if I'm drawing a rectangle, I can't just draw it out as do in Photoshop to say 400 X 200. I'll need to set this manually after I draw a small box.

View 2 Replies

ActionScript 3.0 :: Real-time Data Loading Flash?

Oct 16, 2009

I have created real-time data loading flash file. I'm loading realtime data in dynamic text filed using variable. From JavaScript, I'm pushing the data into those dynamic text fields with 10 seconds interval.

Now I want to animate the dynamic text fields when the new data load into the text filed.

View 5 Replies

ActionScript 3.0 :: Flash Autofill Polygon In Real Time

May 25, 2011

I am creating a game where I have some red balls on the screen and some blue balls on the screen and I would like to draw a polygon around all balls of the same color and have this polygon automatically fill as soon as the polygon shape is closed. How to achieve this as I haven't really done much with the drawing API before. My current code will allow me to draw a polygon and for it to fill when I release the mouse but what I would like it to do is automatically fill as soon as the shape is closed.

Here is my code so far
Code:
var graphix = new MovieClip();
addChild(graphix);
var points:Array = [];
stage.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
[Code] .....

View 2 Replies

ActionScript :: Extract / Modify Frames From Video / NetStream

Apr 12, 2012

I want to modify all the frames loaded from NetStream before playing them out.
Is there any possible way? better with build-in classes and methods, or 3rd-party lib.

View 1 Replies

Flash :: Real Time Transcoding Of Multiple RTMP-Streams?

Nov 18, 2010

Here is my problem: We are broadcasting sportevents live to the internet via flash media encoder.At the event locations we mostly have just 2 mbit upstream. So at the moment we are streaming with about 1mbit rate.But we need also streams for mobile-devices and a stream for users without fast internet. So we want 2 more streams with lower-bitrates,but we can't get this through the 2mbit...I am looking for a solutiuon which can transcode about a 1mbit(and may be in the future a 1.5mbit) livestream in to two (or more)lower-bitrate streams.The solution should be scalable,because sometimes we have 7 events at one day on different locations,so there could be 7 input-streams.I've searched the net for hardware transcoders, but didn't find a stable solution and I've tested also transcoding with ffmpeg, but it seems to get problems with timing and key-frames for bitrate switching.

View 3 Replies

PHP :: Flash Browser Game - Real Time Data Exchange

Feb 16, 2011

I am developing a non-real time browser RPG game (think Kingdom of Loathing) which would be played from within a Flash app. At first I just wanted to make the communication with server using simply URLLoader to tell PHP what I am doing, and using $_SESSION to store data needed in-between request. I wonder if it wouldn't be better to base it on a socket connection, an app residing on a server written in Java or Python.

The problem is I have never ever written such an app so I have no idea how much I'd have to "shift" my thoughts from simple responding do request (like PHP) to continuously working application. I won't hide I am also concerned about the memory and CPU usage of such Server app, when for example there would be hundreds of users connected. I've done some research. So, considering the fact I don't need real time data exchange, will it be wise to develop the server side part as socket server, not in plain ol' PHP?

View 1 Replies

Flash :: Create A Accurate Chronometer Matching Real Time?

Sep 23, 2011

I'm working in an educational software, mostly developed using Flash AS3, and we have a chronometer which shows different values through different users. Example: Two users starting the chronometer at same time, but along some minutes of usage, they have different values.

The current implementation uses Timer class, causing this to happen, obviously due the different average speed of each computer.

View 1 Replies

ActionScript 3.0 :: Flash Debugger Watch Expressions In Real Time

Sep 23, 2010

I am looking for a watch expression debugger for Flash AS3 (not flex). I have found this: demonsterdebugger but the refresh is not in real time (like the trace does), it has a lag of 3 seconds. It is important because i am developing a flash box2d game so I need the coordinates while playing.I've tried also KapInspect with the Digiex pluging, but it gets down the framerate and it is embebbed. So it is not good for me. Can you please tell me one good debugger? I am using Flash Builder 4 (it has not whach expression inspector)

View 1 Replies

ActionScript 3.0 :: Flash Real Time Refraction And Reflection Of Light

Nov 3, 2010

I'm attempting to code a system to handle real-time refraction and reflection of light in 2 dimensions (on an x, y Cartesian plane, basically) and I'm hitting my head against the wall even figuring out where to start on this. My concept for how this should behave goes like this: There is an object that shoots a ray of light (a laser beam or something) toward a target object. When the ray intersects with the surface of the target, somehow I need to find the normal vector to the surface of the shape at the point of intersection and apply some equations from first year physics to alter the path of the ray appropriately. The same refraction effect takes place as the ray exits the object. At the moment, I'm grasping for straws. I'm not even sure what kinds of objects exist in Flash's libraries that will work for me with this. The existing libraries for shapes won't let me create lenses like I want to, and I'm not sure what I'll need to make for an adequate "light" projectile or line to take on this behaviour.

View 11 Replies

ActionScript 3.0 :: Flash - Pulling Data From A Database In Real Time?

Aug 15, 2011

I am a pretty big newb- my challenge is get a flash page to look to a database and check for updates constantly (in the realm of 1update/second) then pull new data as it is added.

View 1 Replies

Real Time - Draw Candle Graph Using Open Flash Chart?

Nov 24, 2010

I want to draw stock price in real time as a candle graph. I get open flash chart from someone and it looks good at drawing. I don't know how to update the candle graph in real time (using Ajax?), and is it a good way? I use Python a lot. But I cannot find tools as easily to use as OFC.

View 3 Replies

Publish Real Time Video Stream Of IP Camera To Flash Media Server With Flash?

Jul 22, 2010

Does flash provide an api to deal with remote stream like IP camera does?

View 2 Replies

Real Time Date And Time Tween?

Aug 16, 2011

I'm working on creating a new look for my portfolio and had a concept.I would like have one movie clip tween in real time 365 frame increments, while another moves in real time minute or second increments.Along with this, I would like to be able to override the passage of time by scrolling an associated scrollbar.The two tweens would be independent of one another.

View 1 Replies

Flash :: Html - Movies In Inactive Browser Tabs Pause Or Don't Execute In Real Time

Apr 7, 2010

I'm noticing some unexpected behavior. Some time in the last few months, a change in either Firefox, the Flash player, or both, has made it so that Flash movies that are in inactive browser tabs no longer execute in real time. They appear to still execute, but only in bursts, and not in a predictable way. This is a problem because I develop a Flash-based (Actionscript 2.0, Flash CS3) multiplayer game that maintains a network connection and allows players to chat, etc.

[Code]...

View 2 Replies

Webcam - Retrieve Real Time Video Stream (from Web Camera) From Flash Media Server In A Browser?

Jun 12, 2010

How does the url of FMS real time video stream look like?

View 1 Replies

ActionScript 2.0 :: Modify The Audio Properties Of Videoclips?

Mar 15, 2009

how can you modify the audio properties of videoclips in flash i did some searching, and found options for modifying audio properties of audio files but unable to locate any modifable properties for video in flash

View 1 Replies

ActionScript 3.0 :: NetStream.time - Misreporting Time On Streaming Flv?

Feb 13, 2009

Is there a particular reason that when you stream a video your _netStream.time will misreport the elapsed time of the stream? I've tested streaming vs progressive download and discovered that while progressive netStream.time seems spot-on accurate the streaming netStream.time is behind the actual running time of the flv.

In other words, the video has played to completion and stopped, but the seek bar has only progressed 85% of the way through on a stream.

Is this something to do with the sample rate of the video, or some other encoding issue?

View 1 Replies

Flash :: Synchronizing Sound - Sound Gets Terrible As Time Passes?

Jan 31, 2010

It appears my sound is off sync and the longer I play the movieclip, the farther off sync it goes. Its nothing too complicated, just some basic shooting sounds that fire every time I hit the space bar. My code is below:

package com.objects{

import flash.display.MovieClip;
import flash.media.Sound;
import flash.media.SoundChannel;[code]....

The Attack() method gets called from another class that handles all keyboard controls.when it gets called the sound then plays.firesound and firesound2 are almost the same. firesound2 sounds a little off pitch to make it sound more realistic.At first the sound sounds pretty good, not great. but then it gets terrible as time passes.

I made a new .fla project. and I attached the following class to it by it self. so the following is the only code in the entire .fla project and the issue still occurs. I press the spacebar and the sound starts a day late.

package {
import flash.display.MovieClip;
import flash.events.*;[code]......

View 2 Replies







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