Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef TSIO_AIFF_INCLUDED
Toshihiro Shimizu 890ddd
#define TSIO_AIFF_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tsound_io.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//==========================================================
Toshihiro Shimizu 890ddd
/*!
Toshihiro Shimizu 890ddd
The class TSoundTrackReaderAiff reads audio files having
Toshihiro Shimizu 890ddd
.aiff extension 
Toshihiro Shimizu 890ddd
*/
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class TSoundTrackReaderAiff : public TSoundTrackReader
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	TSoundTrackReaderAiff(const TFilePath &fp);
Toshihiro Shimizu 890ddd
	~TSoundTrackReaderAiff() {}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	/*!
Toshihiro Shimizu 890ddd
  Loads the .aiff audio file whose path has been specified in the constructor.
Toshihiro Shimizu 890ddd
  It returns a TSoundTrackP created from the audio file 
Toshihiro Shimizu 890ddd
  */
Toshihiro Shimizu 890ddd
	TSoundTrackP load();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	/*!
Toshihiro Shimizu 890ddd
  Returns a soundtrack reader able to read .aiff audio files
Toshihiro Shimizu 890ddd
  */
Toshihiro Shimizu 890ddd
	static TSoundTrackReader *create(const TFilePath &fp)
Toshihiro Shimizu 890ddd
	{
Toshihiro Shimizu 890ddd
		return new TSoundTrackReaderAiff(fp);
Toshihiro Shimizu 890ddd
	}
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//==========================================================
Toshihiro Shimizu 890ddd
/*!
Toshihiro Shimizu 890ddd
The class TSoundTrackWriterAiff writes audio file having
Toshihiro Shimizu 890ddd
.aiff extension
Toshihiro Shimizu 890ddd
*/
Toshihiro Shimizu 890ddd
class TSoundTrackWriterAiff : public TSoundTrackWriter
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	TSoundTrackWriterAiff(const TFilePath &fp);
Toshihiro Shimizu 890ddd
	~TSoundTrackWriterAiff() {}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	/*!
Toshihiro Shimizu 890ddd
  Saves the informations of the soundtrack in .aiff audio file
Toshihiro Shimizu 890ddd
  whose path has been specified in the constructor.
Toshihiro Shimizu 890ddd
  */
Toshihiro Shimizu 890ddd
	bool save(const TSoundTrackP &);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	/*!
Toshihiro Shimizu 890ddd
  Returns a soundtrack writer able to write .aiff audio files
Toshihiro Shimizu 890ddd
  */
Toshihiro Shimizu 890ddd
	static TSoundTrackWriter *create(const TFilePath &fp)
Toshihiro Shimizu 890ddd
	{
Toshihiro Shimizu 890ddd
		return new TSoundTrackWriterAiff(fp);
Toshihiro Shimizu 890ddd
	}
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif