2019-12-03 19:23:33 +00:00
|
|
|
#ifndef SUNSHINE_AUDIO_H
|
|
|
|
#define SUNSHINE_AUDIO_H
|
|
|
|
|
2019-12-11 18:06:52 +00:00
|
|
|
#include "thread_safe.h"
|
2021-05-17 19:21:57 +00:00
|
|
|
#include "utility.h"
|
2019-12-03 19:23:33 +00:00
|
|
|
namespace audio {
|
|
|
|
struct config_t {
|
|
|
|
int packetDuration;
|
|
|
|
int channels;
|
|
|
|
int mask;
|
|
|
|
};
|
|
|
|
|
2021-05-17 19:21:57 +00:00
|
|
|
using packet_t = util::buffer_t<std::uint8_t>;
|
|
|
|
using packet_queue_t = std::shared_ptr<safe::queue_t<std::pair<void *, packet_t>>>;
|
2020-02-09 23:33:12 +00:00
|
|
|
void capture(safe::signal_t *shutdown_event, packet_queue_t packets, config_t config, void *channel_data);
|
2021-05-17 19:21:57 +00:00
|
|
|
} // namespace audio
|
2019-12-03 19:23:33 +00:00
|
|
|
|
|
|
|
#endif
|