mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 915344: Make variables 'SAMPLES' and 'numSamplesReadFromInput' unsigned, to fix build warning in mediaconduit_unittests.cpp. r=jesup
This commit is contained in:
parent
5866ac9a1f
commit
56ec1c6d46
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user