mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[client] audio: cosmetics
This commit is contained in:
parent
41884bfcc5
commit
016001da67
1 changed files with 14 additions and 11 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue