mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-17 08:09:50 +00:00
19 lines
434 B
C++
19 lines
434 B
C++
#ifndef SUNSHINE_AUDIO_H
|
|
#define SUNSHINE_AUDIO_H
|
|
|
|
#include "utility.h"
|
|
#include "thread_safe.h"
|
|
namespace audio {
|
|
struct config_t {
|
|
int packetDuration;
|
|
int channels;
|
|
int mask;
|
|
};
|
|
|
|
using packet_t = util::buffer_t<std::uint8_t>;
|
|
using packet_queue_t = std::shared_ptr<safe::queue_t<std::pair<void*, packet_t>>>;
|
|
void capture(safe::signal_t *shutdown_event, packet_queue_t packets, config_t config, void *channel_data);
|
|
}
|
|
|
|
#endif
|