IC8 Python API:RLPy RIAudioObject

From Reallusion Wiki!
Jump to: navigation, search

Description

This class represents the sound object in the scene. The developer can load or save audio file through the method Load() or Save(). Only support WAV audio file in PCM format, can be one of the following: 8KHz mono 16bits, 11KHz mono 16bits, 22KHz mono 16bits, 44KHz mono 16bits, 16KHz mono 16bits, 48KHz mono 16bits, 8KHz stereo 16bits, 11KHz stereo 16bits, 22KHz stereo 16bits, 44KHz stereo 16bits, 16KHz stereo 16bits and 48KHz mono 16bits.

Constructor & Destructor

__init__ (self, *args, **kwargs)

Initializes a new ri audio object instance.

Parameters

  • args
  • kwargs

Member Functions

HasData (self)

Provides a way to determine if an element currently has any audio source.

Load (self, strPath)

Load Audio Source from wave file.

Parameters

  • strPath

Save (self, strPath)

Save an Audio Source to wave file.

Parameters

  • strPath

Properties

thisown

Indicates whether this SWIG proxy owns the underlying C++ object.