[client] audio: cosmetics

This commit is contained in:
Geoffrey McRae 2022-01-27 17:24:43 +11:00
parent 41884bfcc5
commit 016001da67

View file

@ -260,7 +260,8 @@ static int playbackPullFrames(uint8_t * dst, int frames)
} }
} }
PlaybackDeviceTick tick = { PlaybackDeviceTick tick =
{
.nextTime = data->nextTime, .nextTime = data->nextTime,
.nextPosition = data->nextPosition .nextPosition = data->nextPosition
}; };
@ -531,8 +532,10 @@ void audio_playbackData(uint8_t * data, size_t size)
int consumed = 0; int consumed = 0;
while (consumed < frames) while (consumed < frames)
{ {
SRC_DATA srcData = { SRC_DATA srcData =
.data_in = spiceData->framesIn + consumed * audio.playback.channels, {
.data_in = spiceData->framesIn +
consumed * audio.playback.channels,
.data_out = spiceData->framesOut, .data_out = spiceData->framesOut,
.input_frames = frames - consumed, .input_frames = frames - consumed,
.output_frames = spiceData->framesOutSize, .output_frames = spiceData->framesOutSize,