header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Ankush
Points:240
Posts:0

9/21/2010 11:32:23 PM

Title: Spectrum of Receiving Live Audio


Hello Friends..

I have a question, i am receiving an audio stream of a person. My stream name is receiveStream.
Now i have to show its audio spectrum. I have tried from a local file (eg: "abc.mp3") and achieved that. Now the problem is for live streaming (using netstream).

What can i do for this. Please help me out from this ASAP.

Here's the receiving code :


private function receiveAudio(stream:String):void{
    	receiveStream = new NetStream(fmsConnection);
	receiveStream.play(streamName,-1);
	receiveStream.addEventListener(NetStatusEvent.NET_STATUS,receiveStreamStatus);
	receiveStream.addEventListener(AsyncErrorEvent.ASYNC_ERROR,receiveAsyncErr);
}

Thanks in Advance



1
Kiney
Points: 600
Posts:0
9/24/2010 5:17:24 AM



interesting question , I also worked on this some time ago but no success, There are many examples online but none is with the live audio. I am using RED5 server . Please let me know if you find any solution.

this should work but , not working with me

var myByteArr:ByteArray = new ByteArray();
SoundMixer.computeSpectrum(bytes, true, 0);

2
Derek
Points: 0
Posts:0
9/28/2010 11:07:52 PM



any success with you guys, I also need the create equalizer from live audio, have smashed my head but got no clue.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 7+5 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions