| #pragma once |
| |
| #ifndef TSIO_WAV_INCLUDED |
| #define TSIO_WAV_INCLUDED |
| |
| #include "tsound_io.h" |
| |
| |
| |
| |
| |
| |
| class TSoundTrackReaderWav final : public TSoundTrackReader { |
| public: |
| TSoundTrackReaderWav(const TFilePath &fp); |
| ~TSoundTrackReaderWav() {} |
| |
| |
| |
| |
| |
| TSoundTrackP load() override; |
| |
| |
| |
| |
| static TSoundTrackReader *create(const TFilePath &fp) { |
| return new TSoundTrackReaderWav(fp); |
| } |
| }; |
| |
| |
| |
| |
| |
| |
| |
| class TSoundTrackWriterWav final : public TSoundTrackWriter { |
| public: |
| TSoundTrackWriterWav(const TFilePath &fp); |
| ~TSoundTrackWriterWav() {} |
| |
| |
| |
| |
| |
| bool save(const TSoundTrackP &) override; |
| |
| |
| |
| |
| static TSoundTrackWriter *create(const TFilePath &fp) { |
| return new TSoundTrackWriterWav(fp); |
| } |
| }; |
| |
| #endif |