87 std::unique_ptr<FileStreamBuffer> mBuffer;
StreamBuffer that a file fills with asynchronous reads.
Definition filestreambuffer.h:14
void SetPlaying(bool bPlaying)
Set whether the stream plays.
StreamPlayer(int nChannel, const char *pszFile, bool bAudio)
Open a stream file, or SoundFX/default.str when the file does not open.
bool IsFinished()
Report whether the file ended and the end of the stream was sent.
~StreamPlayer()
Close the stream file.
bool IsPlaying() const
Report whether the stream plays.
FileStreamBuffer * GetBuffer() const
Definition streamplayer.h:80
int GetChannel() const
Definition streamplayer.h:75
void Poll()
Pass the next run of the file to the sound output, and end the stream once the file ends.