class AudioLayer

New Feature

class AudioLayer : public MohoLayer {
  void SetAudioFile(const char *path);
  const char *AudioFile();
  real MaxAmplitude();
  real GetAmplitude(real startTime, real duration);
  real GetRMSAmplitude(real startTime, real duration);
  real GetMaxAmplitude(real startTime, real duration);
  void SetAudioText(const char *text);
  const char *AudioText();
  real MaxAmplitude();
  bool IsSilent();
  real GetAudioLevel(int32 frame);
  real GetStereoPosition(int32 frame);
  void SetSpatialPositioning(bool b);
  bool SpatialPositioning();
  real FrameToAudioTime(int32 frame, real frameDuration);
 
  AnimVal        fAudioLevel;
  AnimVal        fJumpToFrame;
};