MusicPipe: eliminate the unused MusicBuffer reference

This requires re-adding the reference to struct DecoderControl, which
was removed recently by commit
9f14e7a98d
This commit is contained in:
Max Kellermann
2018-06-23 18:04:09 +02:00
parent 076be809c2
commit 2be905b2e2
8 changed files with 17 additions and 42 deletions

View File

@@ -30,18 +30,11 @@
#include <assert.h>
class MusicBuffer;
/**
* A queue of #MusicChunk objects. One party appends chunks at the
* tail, and the other consumes them from the head.
*/
class MusicPipe {
/**
* The #MusicBuffer where all chunks must be returned.
*/
MusicBuffer &buffer;
/** the first chunk */
MusicChunkPtr head;
@@ -59,24 +52,10 @@ class MusicPipe {
#endif
public:
/**
* Creates a new #MusicPipe object. It is empty.
*/
explicit MusicPipe(MusicBuffer &_buffer) noexcept
:buffer(_buffer) {}
MusicPipe(const MusicPipe &) = delete;
~MusicPipe() noexcept {
Clear();
}
MusicPipe &operator=(const MusicPipe &) = delete;
MusicBuffer &GetBuffer() noexcept {
return buffer;
}
#ifndef NDEBUG
/**
* Checks if the audio format if the chunk is equal to the specified