Sunshine/sunshine/audio.h

19 lines
390 B
C
Raw Normal View History

#ifndef SUNSHINE_AUDIO_H
#define SUNSHINE_AUDIO_H
#include "utility.h"
2019-12-11 18:06:52 +00:00
#include "thread_safe.h"
namespace audio {
struct config_t {
int packetDuration;
int channels;
int mask;
};
using packet_t = util::buffer_t<std::uint8_t>;
2019-12-08 22:31:37 +00:00
using packet_queue_t = std::shared_ptr<safe::queue_t<packet_t>>;
void capture(std::shared_ptr<safe::queue_t<packet_t>> packets, config_t config);
}
#endif