Inheritance diagram for DzMultiMediaMgr:
Methods | |
DzError | exportVideoClip (String fileName, DzVideoClip clip, Number exporterIndex=-1) |
DzAudioImporter | findAudioImporter (String filename) |
DzVideoExporter | findVideoExporter (String filename) |
String | getAudioClipLoadPath () |
DzAudioImporter | getAudioImporter (Number i) |
Number | getNumAudioImporters () |
Number | getNumVideoExporters () |
String | getVideoClipSavePath () |
DzVideoExporter | getVideoExporter (Number i) |
DzError | importAudioClip (String fileName, DzAudioClip clip, Number importerIndex=-1) |
void | makeAudioImportFileFilter (DzFileFilter filter, String defaultFilter="", Boolean makeAllFilesEntry=true) |
void | makeVideoExportFileFilter (DzFileFilter filter, String defaultFilter="") |
There is only one instance of this manager in an application. This instance is created and owned by DzApp. Don't create an instance of this class, but rather request a pointer to it from DzApp via DzApp::getMultiMediaMgr().
DzError DzMultiMediaMgr::exportVideoClip | ( | String | fileName, | |
DzVideoClip | clip, | |||
Number | exporterIndex = -1 | |||
) |
Export the clip to a video file.
filename | The name of the file to export to. | |
clip | An instance of DzVideoClip containing the data to save. | |
exporterIndex | The index of the exporter class to use. If this is less than 0, then the extension of fileName is used to attempt to find an appropiate exporter. |
DzAudioImporter DzMultiMediaMgr::findAudioImporter | ( | String | filename | ) |
Uses the filename extension to find an appropriate audio importer.
DzVideoExporter DzMultiMediaMgr::findVideoExporter | ( | String | filename | ) |
Uses the filename extension to find an appropriate video exporter.
String DzMultiMediaMgr::getAudioClipLoadPath | ( | ) |
DzAudioImporter DzMultiMediaMgr::getAudioImporter | ( | Number | i | ) |
int DzMultiMediaMgr::getNumAudioImporters | ( | ) |
int DzMultiMediaMgr::getNumVideoExporters | ( | ) |
String DzMultiMediaMgr::getVideoClipSavePath | ( | ) |
DzVideoExporter DzMultiMediaMgr::getVideoExporter | ( | Number | i | ) |
i | The index of the exporter to create. |
DzError DzMultiMediaMgr::importAudioClip | ( | String | fileName, | |
DzAudioClip | clip, | |||
Number | importerIndex = -1 | |||
) |
Import an audio clip from a file.
filename | The name of the file to import from. | |
clip | A pointer to a DzAudioClip instance to import the data into. | |
importerIndex | The index of the importer class to use. If this is less than 0, then the extension of fileName is used to attempt to find an appropiate exporter. |
void DzMultiMediaMgr::makeAudioImportFileFilter | ( | DzFileFilter | filter, | |
String | defaultFilter = "" , |
|||
Boolean | makeAllFilesEntry = true | |||
) |
Populates the given filter with all the audio types recognized by the multimedia manager.
filter | The filter to populate | |
defaultFilter | The filter to set as the default | |
makeAllFilesEntry | If true, and additional filter is created for all recognized file extensions. |
void DzMultiMediaMgr::makeVideoExportFileFilter | ( | DzFileFilter | filter, | |
String | defaultFilter = "" | |||
) |
Populates the given filter with all the video types recognized by the multimedia manager.
filter | The filter to populate | |
defaultFilter | The filter to set as the default |