mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
optimize a bit
This commit is contained in:
@@ -102,7 +102,7 @@ static PulseOutputDevice output = {0};
|
||||
void process_audio_buffer(AudioBuffer* buffer, PulseOutputDevice* output_device) {
|
||||
while (buffer->count > 0) {
|
||||
AudioPacket* pkt = &buffer->packets[buffer->tail];
|
||||
write_PulseOutputDevicef(output_device, pkt->data, pkt->size);
|
||||
write_PulseOutputDevice(output_device, pkt->data, pkt->size);
|
||||
|
||||
buffer->tail = (buffer->tail + 1) % buffer->capacity;
|
||||
buffer->count--;
|
||||
|
||||
Reference in New Issue
Block a user