ActionScript 3.0 :: Play 2 Audio In Same Time?
Jun 26, 2009I want to play 2 audio in same time is it possible.....
View 3 RepliesI want to play 2 audio in same time is it possible.....
View 3 RepliesI have an audio player that has a custom timeline and playhead. I am using a start and stop drag to move in the time line but the only way i can make it work is to have it play when ever I release the play head. I would like it to stay stopped if the player is paused and play if the player was playing.
[Code]...
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.
I have created two buttons for separate audio files. Essentially if you click on the button it will play and stop. This works great! I have also injected a SoundMixer.stopAll(); to ensure if you click between both buttons that it will stop the current audio file to play the next one. My problem is when I select the 2nd button for the first time everything seems to be working...it's when I attempt to click on the first button again, that it will require 2 clicks and then it stops and plays accordingly...anyone know how I could eliminate this annoying two click process?
[Code]...
I'm testing Live streaming with FMSS. The stream is pushed to FMSS buy Adobe FMLE software. Streaming works fine until I reach 1300-1400 simultaneous connections.No matter what the encoding ratebit is (150kbps or 2000kbps) the stream is no longer play from time to time (5-8 seconds).
The CPU (2xIntel Quad) is loaded less than 20% and memory used is about 2 GB (there is plenty of memory installed 32G). The OS is RedHat 5.3 64bit platform. Network uplink maximum rate is 4Gbps.I disabled the Queue but the problem still persist.
What I mean is, can I add a sound that will only play if there are enough frames for the sound?I want to only play on the frames that it is on, but it plays all the way through the sound file regardless of the amount of frames.
View 0 RepliesI'm putting together book in Flash. The audio starts with frame 2 but the naritive continues on frame 3 and 4. I can code a "next" button like so:
Code:
on (release) {
gotoAndStop(3);
[code].....
I'm putting together book in Flash. The audio starts with frame 2 but the naritive continues on frame 3 and 4.[code]...
Is it possible to have code to move to the next frame after a certain amount of time instead of a button?
I'm using an mp3player skin, but the running time won't work (bottom of code)--it stays at "0:00" when you hit play. Everything else is working fine.[code]
View 1 RepliesUsing Flash CS3, Actionscript3.0, Player Version 9.0
My video player plays H.264 videos.
But some of my Quick Time movies are not playing audio. Only video is working.
How to record Audio and Video at the same time into flv in Adobe air 2.0 ? So that Video and Audio will be sinchronised?
View 1 RepliesI 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?
I have tried this too but the value keeps on changing as the sound load progresses.
View 3 RepliesWhat I'm looking to happen is that on frame 2 I want audio track 1 to play and:
after 1 min 45s move to frame 3
after 1 min 51s move to frame 4
after 2 min 47s move to frame 5
after 3 min 15s move to frame 6
How would I code this or what would be the easiest way to do it??
Is there a way to suppress/mute the video portion of an FLV while it's playing so only the audio comes across? Is there a Flash player out there that does this?
View 3 RepliesI've got a swf which uses AS 3 to load separate audio (mp3) and video (flv) files. The reason they're separate is because the audio is just background music while the video is navigatable. The video kinda goes along with the audio, but it's not imperative that the two sync perfectly. However, the audio always starts playing before enough of the video has loaded to begin streaming.I'm at a loss as to how to get the two to at least START at the same time.
View 14 Replieshow to switch audio track in real time? For example, show the audio tracks and choose one of them.
View 18 RepliesI'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
Into my main SWF, I'm loading an external SWF with anUlLoader component. This external SWF plays an FLV using thatrespective component. Everything works fine, except that when Iclose the external SWF from within my main SWF, the FLV audiocontinues to play.
View 3 RepliesWhen viewing the .swf file inside a web browser, the audio file does not work. The sound does not get played. However, when double clicking on the .swf file, it works fine with the sound.
View 40 RepliesI creat ios app using adobe flash pro cs5.5
is There any way to make it play audio in background like this:
Is there a way to import audio into Flash and use it in a way similar to a movie clip (give it an instance name and use a button to play it etc.)
View 3 RepliesI am working on a project which I have to link a few swf. I have used loadMovieNum for the linking, meaning the actionscript I apply for my buttons look like this:
on (release){
loadMovieNum("filename.swf",0);
}
Above script enables me to link the files. However, I wish to play an audio across all files CONTINUOUSLY. Is there ANY way to do it? I tried putting the audio in another file and load the movie on level 1. But everytime when I jump from one file to another, the audio stops.
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 RepliesI'm trying to use the Shared Library process for the first time with audio files and I'm not sure why it's not working. I've followed both processes from here:[URL] and have a library file called libTestAudio.swf with all the audio files set up right (see Flash file here [URL] My question is should the testAudio.swf ever grow in file size? When it has no content it is at 4Kb but when it has the shared library file added to the timeline it becomes 8Kb. Now this might sound small but I've tried this with much longer pieces of audio and the file size does get bigger for testAudio.swf . I was thinking that only the libTestAudio.swf file would increase in file size and testAudio.swf would remain at it's 4Kb size. Am i wrong there?
View 0 RepliesI am trying to create a simple desktop app to play a live radio stream from a shoutcast server. I cannot get it to play. I am now wondering if it is even possible using the Flex/Air platform. Here is my code:
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
[Code]....
Is there a way to change the speed of audio/video playing in VideoPlayer or any other such control?Let's say to play voice recordings of slow speaking persons faster to save time.Some mp3 players (e.g. COWON S9) can keep the pitch to avoid funny voice.
View 1 RepliesI'm using flex 3. I've successfully played video and audio files by using following libraries:
flash.media.Video flash.media.Sound Live docs link. But the limitations are as follow: Video class can be used to play only flv file format. To play mp3 files I must use audio file.
So can I play most of the famous audio/video files by using single method?
Well by checking the file type we can some how achieve it. Then I should create a component for that.
So can any one suggest me such ready-made components? or is there any other alternatives to play audio/video files?
1. How can we import these mp3 audio files(These audio files are dynamic in nature as user can add or delete these files through login area) in flash?
View 1 RepliesI've been working on a Flash/XML audio player and have been struggling with getting the audio to stream. Right now I have Flash create a list of songs based on the loaded XML file, which works, and I want to be able to click on one of the listed items for the song to start playing. When an item is clicked on, Flash will trace out a message from an onLoad command, but the audio never starts playing.
I opened a new Flash file to test the non-working segment of code and I still can't get it to co-operate.
Code:
var currentsong:Sound = new Sound();
currentsong.loadSound("http://www.vtspencer.com/recordjackets/beta/media/file_11.m4a",true);
[Code]...
All that happens is that the trace saying "Should be playing" comes through. The music still won't start.