Skip to content
Snippets Groups Projects
Commit 5fff0748 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2370] Remove warnings

parent 0d0b9ec0
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ RingBuffer::getLen(CallID call_id) ...@@ -99,7 +99,7 @@ RingBuffer::getLen(CallID call_id)
int length = (mEnd + mBufferSize - mStart) % mBufferSize; int length = (mEnd + mBufferSize - mStart) % mBufferSize;
// _debug(" *RingBuffer::getLen: buffer_id %s, call_id %s, mStart %i, mEnd %i, length %i, buffersie %i\n", buffer_id.c_str(), call_id.c_str(), mStart, mEnd, length, mBufferSize); // _debug(" *RingBuffer::getLen: buffer_id %s, call_id %s, mStart %i, mEnd %i, length %i, buffersie %i\n", buffer_id.c_str(), call_id.c_str(), mStart, mEnd, length, mBufferSize);
return (mEnd + mBufferSize - mStart) % mBufferSize; return length;
} }
......
...@@ -477,7 +477,7 @@ void AudioRecord::recData (SFLDataFormat* buffer, int nSamples) ...@@ -477,7 +477,7 @@ void AudioRecord::recData (SFLDataFormat* buffer, int nSamples)
if (sndFormat_ == INT16) { // TODO change INT16 to SINT16 if (sndFormat_ == INT16) { // TODO change INT16 to SINT16
if (fwrite (buffer, sizeof (SFLDataFormat), nSamples, fp) != nSamples) if (fwrite (buffer, sizeof (SFLDataFormat), nSamples, fp) != (unsigned int)nSamples)
_debug ("AudioRecord: Could not record data! \n"); _debug ("AudioRecord: Could not record data! \n");
else { else {
fflush (fp); fflush (fp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment