|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#include "tnzsound.h"
|
|
Toshihiro Shimizu |
890ddd |
// #include "tpluginmanager.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "tsound_io.h"
|
|
Toshihiro Shimizu |
890ddd |
#include "tfiletype.h"
|
|
justburner |
64e039 |
#include "thirdparty.h"
|
|
justburner |
64e039 |
|
|
justburner |
64e039 |
#include "wav/tsio_wav.h"
|
|
justburner |
64e039 |
#include "aiff/tsio_aiff.h"
|
|
justburner |
64e039 |
#include "raw/tsio_raw.h"
|
|
justburner |
64e039 |
#include "ffmpeg/tsio_ffmpeg.h"
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
// static TPluginInfo info("soundIOPlugin");
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
void initSoundIo() {
|
|
Shinya Kitaoka |
120a6e |
TSoundTrackReader::define("wav", TSoundTrackReaderWav::create);
|
|
Shinya Kitaoka |
120a6e |
TSoundTrackWriter::define("wav", TSoundTrackWriterWav::create);
|
|
Shinya Kitaoka |
120a6e |
TFileType::declare("wav", TFileType::AUDIO_LEVEL);
|
|
Toshihiro Shimizu |
890ddd |
|
|
Shinya Kitaoka |
120a6e |
TSoundTrackReader::define("aiff", TSoundTrackReaderAiff::create);
|
|
Shinya Kitaoka |
120a6e |
TSoundTrackWriter::define("aiff", TSoundTrackWriterAiff::create);
|
|
Shinya Kitaoka |
120a6e |
TFileType::declare("aiff", TFileType::AUDIO_LEVEL);
|
|
Toshihiro Shimizu |
890ddd |
|
|
jabarrera |
d4754f |
TSoundTrackReader::define("aif", TSoundTrackReaderAiff::create);
|
|
jabarrera |
d4754f |
TSoundTrackWriter::define("aif", TSoundTrackWriterAiff::create);
|
|
jabarrera |
d4754f |
TFileType::declare("aif", TFileType::AUDIO_LEVEL);
|
|
jabarrera |
d4754f |
|
|
Shinya Kitaoka |
120a6e |
TSoundTrackReader::define("raw", TSoundTrackReaderRaw::create);
|
|
Shinya Kitaoka |
120a6e |
TSoundTrackWriter::define("raw", TSoundTrackWriterRaw::create);
|
|
Shinya Kitaoka |
120a6e |
TFileType::declare("raw", TFileType::AUDIO_LEVEL);
|
|
Toshihiro Shimizu |
890ddd |
|
|
justburner |
64e039 |
if (ThirdParty::checkFFmpeg()) {
|
|
justburner |
64e039 |
TSoundTrackReader::define("mp3", TSoundTrackReaderFFmpeg::create);
|
|
Jeremy Bullock |
3f5067 |
TFileType::declare("mp3", TFileType::AUDIO_LEVEL);
|
|
justburner |
64e039 |
TSoundTrackReader::define("ogg", TSoundTrackReaderFFmpeg::create);
|
|
justburner |
9369f1 |
TFileType::declare("ogg", TFileType::AUDIO_LEVEL);
|
|
justburner |
64e039 |
TSoundTrackReader::define("flac", TSoundTrackReaderFFmpeg::create);
|
|
justburner |
9369f1 |
TFileType::declare("flac", TFileType::AUDIO_LEVEL);
|
|
justburner |
64e039 |
TSoundTrackReader::define("m4a", TSoundTrackReaderFFmpeg::create);
|
|
justburner |
64e039 |
TFileType::declare("m4a", TFileType::AUDIO_LEVEL);
|
|
justburner |
64e039 |
TSoundTrackReader::define("aac", TSoundTrackReaderFFmpeg::create);
|
|
justburner |
64e039 |
TFileType::declare("aac", TFileType::AUDIO_LEVEL);
|
|
justburner |
64e039 |
TSoundTrackReader::define("ffaudio", TSoundTrackReaderFFmpeg::create);
|
|
justburner |
64e039 |
TFileType::declare("ffaudio", TFileType::AUDIO_LEVEL);
|
|
Jeremy Bullock |
3f5067 |
}
|
|
Shinya Kitaoka |
120a6e |
// return &info;
|
|
Toshihiro Shimizu |
890ddd |
}
|