| |
| |
| #ifndef TSOP_INCLUDED |
| #define TSOP_INCLUDED |
| |
| #include "tsound.h" |
| |
| #undef DVAPI |
| #undef DVVAR |
| #ifdef TSOUND_EXPORTS |
| #define DVAPI DV_EXPORT_API |
| #define DVVAR DV_EXPORT_VAR |
| #else |
| #define DVAPI DV_IMPORT_API |
| #define DVVAR DV_IMPORT_VAR |
| #endif |
| |
| |
| |
| class DVAPI TSopException : public TException |
| { |
| TString m_message; |
| |
| public: |
| TSopException(const TString &s) : m_message(s) {} |
| ~TSopException() {} |
| |
| TString getMessage() const { return m_message; }; |
| }; |
| |
| |
| |
| |
| namespace TSop |
| { |
| |
| |
| |
| |
| DVAPI void convert(TSoundTrackP &dst, const TSoundTrackP &src); |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP convert( |
| const TSoundTrackP &src, const TSoundTrackFormat &dstFormat); |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP resample(TSoundTrackP src, TINT32 sampleRate); |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP reverb( |
| TSoundTrackP src, |
| double delayTime, |
| double decayFactor, |
| double extendTime); |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP gate( |
| TSoundTrackP src, |
| double threshold, |
| double holdTime, |
| double releaseTime); |
| |
| |
| |
| |
| DVAPI void echo( |
| TSoundTrackP &dst, |
| const TSoundTrackP &src, |
| double delayTime, |
| double decayFactor, |
| double extendTime); |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP timeStrech(TSoundTrackP src, double ratio); |
| |
| |
| |
| |
| DVAPI TSoundTrackP mix( |
| const TSoundTrackP &st1, const TSoundTrackP &st2, double a1, double a2); |
| |
| |
| |
| |
| DVAPI TSoundTrackP insertBlank(TSoundTrackP src, TINT32 s0, TINT32 l); |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP insertBlank(TSoundTrackP src, double t0, double l); |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP remove(TSoundTrackP src, TINT32 s0, TINT32 s1, TSoundTrackP &paste); |
| |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP remove(TSoundTrackP src, double t0, double t1, TSoundTrackP &paste); |
| |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP fadeIn(const TSoundTrackP src, double riseFactor); |
| |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP fadeOut(const TSoundTrackP src, double decayFactor); |
| |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP crossFade( |
| const TSoundTrackP src1, const TSoundTrackP src2, double crossFactor); |
| |
| |
| |
| |
| |
| |
| DVAPI TSoundTrackP crossFade( |
| double crossFactor, const TSoundTrackP src1, const TSoundTrackP src2); |
| } |
| |
| #endif |
| |