11 #include "cores/AudioEngine/Interfaces/AESink.h" 12 #include "cores/AudioEngine/Utils/AEDeviceInfo.h" 13 #include "threads/CriticalSection.h" 20 const char *GetName()
override {
return "OSS"; }
25 static void Register();
26 static std::unique_ptr<IAESink> Create(std::string& device,
AEAudioFormat& desiredFormat);
27 static void EnumerateDevicesEx(AEDeviceInfoList &list,
bool force =
false);
29 bool Initialize(
AEAudioFormat &format, std::string &device)
override;
30 void Deinitialize()
override;
34 double GetCacheTotal()
override {
return 0.0; }
35 unsigned int AddPackets(uint8_t **data,
unsigned int frames,
unsigned int offset)
override;
36 void Drain()
override;
44 std::string GetDeviceUse(
const AEAudioFormat& format,
const std::string &device);
unsigned int AddPackets(uint8_t **data, unsigned int frames, unsigned int offset) override
Adds packets to be sent out, this routine MUST block or sleep.
Definition: AESinkOSS.cpp:417
void GetDelay(AEDelayStatus &status) override
Return a timestamped status structure with delay and sink info.
Definition: AESinkOSS.cpp:399
Definition: AESinkOSS.h:17
Definition: AEChannelInfo.h:19