The Sound class is used to access the scene's soundtrack in part or in whole. The scripting environment can receive notifications when scene frame is ready. See the TB_ExportFLV script for an example.
More...
#include <soundinterface.h>
|
void | setFrameRate (int rate) |
| Sets the number of frames per second. By default the scene frame rate is used.
|
|
void | setSampleRate (double rate) |
| Sets the audio sample rate in Hz (i.e. 22050, 44100, ...).
|
|
void | setChannelSize (int size) |
| Sets the audio channel size (i.e. 8 or 16 bit).
|
|
void | setChannelCount (int count) |
| Sets the number of audio channels (i.e 1 for mono and 2 for stereo).
|
|
QObject | getSoundtrack (int fromFrame, int toFrame) |
| Return a part of the scene's soundtrack in a temporary file in the WAV format.
|
|
QObject | getSoundtrackAll () |
| Return the scene's soundtrack in a temporary file in the WAV format.
|
|
bool | isUnicode (const QString exportFilePath) |
|
bool | copy (const QString &srcFileName, const QString &dstFileName) |
|
|
void | soundReady () |
| Event that notifies the script when the sound file is available.
|
|
|
| sound (QObject *parent, const char *name) |
|
virtual void | attach (TUScriptInterfaceImpl *impl) |
|
The Sound class is used to access the scene's soundtrack in part or in whole. The scripting environment can receive notifications when scene frame is ready. See the TB_ExportFLV script for an example.
sound::sound |
( |
QObject * |
parent, |
|
|
const char * |
name |
|
) |
| |
virtual void sound::attach |
( |
TUScriptInterfaceImpl * |
impl | ) |
|
|
virtual |
bool sound::copy |
( |
const QString & |
srcFileName, |
|
|
const QString & |
dstFileName |
|
) |
| |
|
slot |
QObject sound::getSoundtrack |
( |
int |
fromFrame, |
|
|
int |
toFrame |
|
) |
| |
|
slot |
Return a part of the scene's soundtrack in a temporary file in the WAV format.
- Parameters
-
fromFrame | soundtrack start frame |
toFrame | soundtrack end frame |
- Returns
- soundtrack WAV file
QObject sound::getSoundtrackAll |
( |
| ) |
|
|
slot |
Return the scene's soundtrack in a temporary file in the WAV format.
- Returns
- soundtrack WAV file
bool sound::isUnicode |
( |
const QString |
exportFilePath | ) |
|
|
slot |
void sound::setChannelCount |
( |
int |
count | ) |
|
|
slot |
Sets the number of audio channels (i.e 1 for mono and 2 for stereo).
- Parameters
-
void sound::setChannelSize |
( |
int |
size | ) |
|
|
slot |
Sets the audio channel size (i.e. 8 or 16 bit).
- Parameters
-
void sound::setFrameRate |
( |
int |
rate | ) |
|
|
slot |
Sets the number of frames per second. By default the scene frame rate is used.
- Parameters
-
void sound::setSampleRate |
( |
double |
rate | ) |
|
|
slot |
Sets the audio sample rate in Hz (i.e. 22050, 44100, ...).
- Parameters
-
void sound::soundReady |
( |
| ) |
|
|
signal |
Event that notifies the script when the sound file is available.
The documentation for this class was generated from the following file: