Bug 915344: Make variables 'SAMPLES' and 'numSamplesReadFromInput' unsigned, to fix build warning in mediaconduit_unittests.cpp. r=jesup

This commit is contained in:
Daniel Holbert 2013-09-11 13:54:45 -07:00
parent 5866ac9a1f
commit 56ec1c6d46

View File

@ -270,7 +270,7 @@ void AudioSendAndReceive::GenerateAndReadSamples()
int16_t audioOutput[PLAYOUT_SAMPLE_LENGTH];
short* inbuf;
int sampleLengthDecoded = 0;
int SAMPLES = (PLAYOUT_SAMPLE_FREQUENCY * 10); //10 seconds
unsigned int SAMPLES = (PLAYOUT_SAMPLE_FREQUENCY * 10); //10 seconds
int CHANNELS = 1; //mono audio
int sampleLengthInBytes = sizeof(audioInput);
//generated audio buffer
@ -299,7 +299,7 @@ void AudioSendAndReceive::GenerateAndReadSamples()
fclose(inFile);
WriteWaveHeader(PLAYOUT_SAMPLE_FREQUENCY, 1, outFile);
int numSamplesReadFromInput = 0;
unsigned int numSamplesReadFromInput = 0;
do
{
if(!memcpy(audioInput, inbuf, sampleLengthInBytes))