File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ FrameBuffer::FrameBuffer(const AudioFrameDesc& audioFrameDesc)
32
32
33
33
FrameBuffer::~FrameBuffer ()
34
34
{
35
- for ( int i = 0 ; i < _frameQueue.size (); ++i)
35
+ for ( size_t i = 0 ; i < _frameQueue.size (); ++i)
36
36
popFrame ();
37
37
}
38
38
Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ class FrameBuffer
30
30
/* *
31
31
* @brief Return whether the buffer is empty or not.
32
32
*/
33
- bool isEmpty () { return _frameQueue.empty () && _totalDataSize == 0 ; }
33
+ bool isEmpty () const { return _frameQueue.empty () && _totalDataSize == 0 ; }
34
34
/* *
35
35
* @brief Return the total amount of data contained in the frames of the buffer.
36
36
*/
37
- size_t getDataSize () { return _totalDataSize; }
37
+ size_t getDataSize () const { return _totalDataSize; }
38
38
39
39
/* *
40
40
* @brief Push a frame at the end of the buffer.
@@ -50,7 +50,7 @@ class FrameBuffer
50
50
private:
51
51
void popFrame ();
52
52
53
- const AudioFrameDesc _audioFrameDesc;
53
+ AudioFrameDesc _audioFrameDesc;
54
54
55
55
std::queue<IFrame*> _frameQueue;
56
56
size_t _totalDataSize;
You can’t perform that action at this time.
0 commit comments