Flex :: Overcome Flash Player SoundChannel Or Sound Limit?
Oct 23, 2010
From the Flash player specification, it supported up to 15/16 or 32 sounds in a buffer, which mean any more sounds is load beyond that limit will either caused buffer stop working.
Is there any class to override to increase sounds to 1024 or greater?
View 1 Replies
Similar Posts:
Apr 5, 2010
Is there a better way to use the sound channel is AS3?
var mySound:Sound = new Sound();
playButton.addEventListener (MouseEvent.CLICK, myPlayButtonHandler);
var myChannel:SoundChannel = new SoundChannel();
function myPlayButtonHandler (e:MouseEvent):void {
[code]....
View 2 Replies
May 3, 2011
I'm planning to program a small piano in flash that have an x number of notes to play through a SoundChannel.
What I have not found is a way to record what is playing through SoundChannel and send it as byteArray to a server side script that will save it as WAV (or mp3).
I know Flash Player 10.1 allows you to record sound, but everything I have found is about recording sound using the microphone class. It seems the way to go is to send the sound data to the microphone. That doesn't seem very right or possible though..
View 2 Replies
Jan 20, 2010
I load a song and when I get the length the song never reach this value.Here is issue document by another guy AS3 - SoundChannel.position never reaches Sound.length.And here is my code
import flash.display.Sprite;
import flash.net.URLRequest;
import flash.media.Sound;[code]....
View 2 Replies
May 4, 2011
The thing I don't understand is how to assign a sound to a soundchannel without playing the sound. All the examples I've seen do this.
Code:
_SoundChannel = _sound.play();
_SoundChannel.stop();
And how can I set a SoundChannel volume to zero before allocating a sound to it?
View 2 Replies
Apr 17, 2009
I wondered if there is a way to find out from the soundChannel the url of the sound it is currently playing. once I found out its url, i can than use its name to call something else.Or anyway to find out the sound that is playing on a soundChannel.I will know which channel to look into, but different sound will be loaded into this soundChannel.If this is not possible, i thinking along the line of overloading SoundChannel play method so that is fires an event when the sondchannel plays and also find out the name of the sound file it is currently playing.
View 2 Replies
Apr 10, 2010
As I have commented before I am building English teaching apps. I will have music playing in the background, words being pronounced and at times a surprise sentence. All three could sound at the same time at any given point. To build this properly should I use SoundChannel for all of these?
At the moment my code for the music loop is as so. The sound is in the library and exported for AS. Is this code fine or is it better to assign it to the SoundChannel class.
View 1 Replies
May 3, 2011
I have some sounds in my library that I want to play in a soundchannel, but how? This is what I have so far:
var music:Sound = new Sound();var channel:SoundChannel = new SoundChannel();var sTransform:SoundTransform = new SoundTransform();var sound:SoundFile1 = new SoundFile1(); // Note: SoundFile1 is a class; in it is my soundfile in the library// music.load(sound); ??channel = music.play();
View 1 Replies
Nov 23, 2009
I've just started working with sound and as I understand it I primarily need two objects: Sound and SoundChannel. Every call to a Sound.play() method will create a new SoundChannel object. So technically, I could write my code like this:
Code:
package
{
import flash.media.Sound;
[code]....
Will simply create a new SoundChannel object and the first one created by the constructor will be garbage collected? As a side note, it's possible to see Adobe's source files e.g.SoundChannel.as. I'm curious as to how the SoundChannel.stop() method works since it doesn't throw an error or exception even if the audio has already stopped playing.
View 3 Replies
Aug 9, 2011
How do we check if there is a sound already playing in a soundchannel?
View 1 Replies
May 3, 2011
I have a soundchannel, and I'm playing a lot of sounds in it, but I need the completion of any sound file within that channel to be followed by a wait of two seconds, then trigger an event. How can I do this?
View 4 Replies
Dec 6, 2008
I just finished a simple music player... For testing purposes. I upload it in the following address:http:[url]....with 10 music songs that I had recorded from radio stations(added the last 2 twice for testing).The problem is that when a song has totally loaded, stop action taken needs about 1 second to be applied!I.e. When I press "STOP", the sound continue to play for 1 sec before stop. When I push "pause" it takes one second for the music to stop!
However when using resume (second time pause) the sound starts instantly! Thus I guess there is an issue with stop()function of the SoundChannel object that I am using to stop the sound. Also notice that when unpause the music, it continue ~one second before the last sound - which means that I saved the soundChannel.position number (and also call soundChannel.stop()) in correct time, but it didn't stop immediately - bug!?
This only happens when the application runs through a browser(plugin v. 10) - programmed in CS3.
PS1. Notice that ,this also happens when I change Volume too. Thus because Stop and Volume are parts of SoundChannel, I guess there might be a bug with SoundChannel in online plugins..... :/
PS2. Notice that ,this also happens when I close the browser (firefox). Even if browser is closed the music continue for 1 sec the same way as when pressing stop!.. Thus I guess it's flash bug!...
View 2 Replies
May 28, 2008
I have a pause button that pauses a sound playing in a soundchannel. It works, but when I resume the sound, it isn't in thecorrect position, almost like it was rewinded a little. I'm usingthe code straight from the
View 1 Replies
May 18, 2011
I'm building a website for a client that includes testing videos which need to have a limit on how many times the test taker can click the play/pause/scrub buttons (with a counter to let them know how many clicks they have left).
To the best of my knowledge they don't have the original flash project of the current player they're using (which does have that feature, but needs to be redesigned), and I'd rather build it with AS3 anyway.
I'm hoping to just alter one of the existing player component skins like Minima and add a box to display the click count, but I honestly don't know how to alter the component itself to keep track of the clicks and disable the buttons when they reach a specified number.
View 3 Replies
Nov 29, 2002
I'll try to be clear and concise:
**Say you have a single-scene 170 frame long movie.
**The first two frames contain a preloader function.
**Following the preloader is a very short introduction.
**Then, the real stuff begins including a background SOUND LOOP that begins at say frame 70.
**Now here's the actual problem: I want the sound loop to only play between frames 70 and 170. Nowhere else, especially not over the preloader if someone happens to restart the movie.
-Which is what happens now. It plays fine the first time, but then the loop just keeps going and going no matter what.
View 3 Replies
Jun 17, 2008
I cannot hear any sound when i use the adobe flash player onyoutube, but i have sound when i play music from itunes andwindowmedia player.
View 9 Replies
Nov 18, 2010
I'm loading and displaying a large image say 6000 x 6000 px using an image tag. I wanted to take a snapshot of the image. But the maximum limit I get is 2880 px dimensions using Flex 4, flash player 10. Didn't the limit of FP 10 increased to 4096 px? Then why am I getting 2880? Is there a way to increase that size.
View 2 Replies
Aug 25, 2011
I need to be able to output some large xml strings, and they are getting cutoff.
View 2 Replies
Jul 10, 2009
I'm trying to add sound visualization to my flash mp3 player. I found some samples but when adding the script to my project it doesn't work.The code for my mp3 player is:
import caurina.transitions.*;
volume_mc.slider_mc.buttonMode = true;
var xOffset:Number;[code]......
View 16 Replies
Nov 14, 2010
I'm struggling with a flash file that I want to play two different sound files when the appropriate buttons are pressed.I've gotten it to the point where it will load without any errors popping up, but instead of playing the second sound when I press the button for that sound, it plays the first sound again. Here's the code:
var sc1:SoundChannel = new SoundChannel();
var s1:Sound = new Sound();
s1.load(new URLRequest("http://www.website.com/wells.mp3"));
[code]....
View 1 Replies
Jan 12, 2009
I would like to completely disable the soundin Adobes Flash-Player in case of "nerving"Websites. Is there a way to disable the soundin Flash-Player, but without disabling the sound in
View 3 Replies
Oct 31, 2011
referring to my old question AS3: Analyzing sound spectrums one by one, one channel at once , with flash player 11 and using Sound.extract,is it possible to extract a single channel and manipulate/visualize it's spectrum? I mean, if i mix 2 sounds into one file, can i control them separately, acting on thing like their soundwaves or volume?
View 1 Replies
Dec 6, 2007
I'm trying to develop something for Flash 5 Player and nothing seems to work. Currently I'm having trouble with the following bit of AS which works fine if I export for Flash 6. But in Flash 5...no sound. Is there a specific way an mp3 needs to be encoded for Flash 5 or does it not even accept mp3s?
Code:
// sound object
_soundbuftime=10;
[code].....
View 4 Replies
Jan 4, 2011
Is it possible for me to record sound from a microphone using a lower version of flash player, say Flash Player 9?
View 2 Replies
May 5, 2011
I am able to generate dynamic sounds using flash player 10.Is there any way to save the data to a .wav file on the server?
View 1 Replies
Jan 5, 2010
I have an application using the new sound capabilities in Flash Player 10 and I want to play a sound dynamically at a rate of 8KHz.
To play sound dynamically you need to listen for the sampleData event and then feed the sound object raw sound data. Unfortunately, the sampleData event appears to only be triggered to enable playback of sound sampled at 44.1KHz.
The microphone can be configured to sample raw data at 8KHz so why can we not configure the speaker to playback raw data at 8KHz. Is there something I'm missing? If not, is this feature in the roadmap?
View 2 Replies
Apr 9, 2011
I am working on a quiz system. Normally it uses jpeg images with each question. But a few of the quizzes instead feature animated .SWF files. I want to use jquery swfobject to call the play() method, once the user has clicked on an answer.
My solution works fine locally, but when I try to run it online, it throws the "Error calling method on NPObject!" message.
The quiz HTML is located on www.somedomain.com and the SWFs are on images.somedomain.com. So, I'm guessing this is a cross-domain thing.
Trouble for me is, I don't know anything about Flash... how to edit SWF files, anything about Flash attributes, or the like.
Here's an example of my code:
<div class="photos">
<object data="http://images.somedomain.com/q1tattooquiz.swf" type="application/x-shockwave-flash" width="600" height="350">
<param name="movie" value="http://images.somedomain.com/q1tattooquiz.swf">
[Code].....
View 4 Replies
Oct 14, 2011
how to create a custom player that would stream a list of youtube videos along with soundcloud, and MP3 similar to the one on [url]....I know that this might seem like quite a general question but any direction on how to accomplish this and whether it should be done using flash and Youtube API, and sound cloud API or whether it should be done with some sort of flash audio ripping way.
View 1 Replies
Aug 1, 2011
Flash is not in my toolset, but I am an old Director jock and have spent some hours dipping my head into the Flash manual. I suppose that makes me a promising beginner-level poster. I'm working in CS5.
I need to make a simple Flash-based sound player for a website for a newly-released novel (http://www.bearriverbooks.com/index.html). I want the user to click on what appears to be an icon (or image), which kicks open a simple controller and starts playing a sound file (a radio interview, which I will probably export using Flash's voice compression). Nothing fancy. Just want the visitor to hear the sound and be able to apply simple controls (stop/start/rewind/volume).
I can learn ActionScript, I suppose, since I used to dream in Lingo, but my life would be a lot simpler if I could just publish a controller without having to roll my own. I'd like to think there's a magic button somewhere that can do this, but I haven't found it yet.
View 4 Replies
Feb 22, 2010
How do I limit my amf sessions to flex over pyamf?
I have set up a pyamf gateway to that serves value objects that originate from a django admin panel, through sqlalchemy to my authenticated flex client. It's working great, however there is a problem. My sessions are persisting and clogging up the server, so after about 20 or so AMF sessions are authenticated, it refuses any more until I restart the server.
View 1 Replies