Skip to main content
Robert Mc Dowell
Legend
May 8, 2018
Question

NetStream and SAMPLE_DATA

  • May 8, 2018
  • 1 reply
  • 1750 views

Hi,

is there a special way to use SampleDataEvent with NetStream.play() ?

I would like to apply my own audio effect to NetStream thanks

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 8, 2018

you probably want SoundMixer.computeSpectrum

Robert Mc Dowell
Legend
May 8, 2018

hi Kglad,

apparently computeSpectrum is for graphic wave form only and offer a fragment of the full byte data chunk.

Colin Holgate
Inspiring
May 8, 2018

computeSpectrum can be used to get an envelope like display, but you can also just get the audio data. I've done apps that combine sections of audio, and play them back as a single sound. This article explains the modes:

Adobe ActionScript 3.0 * Accessing raw sound data

The part I don't know is whether that will work from a video stream audio, but it's worth a try.