mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 14:53:52 +00:00
Refactor audio buffering API, this should mainly prevent SDL audio driver from allocating memory in the mixer callback.
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
#include "PLCore.h"
|
||||
|
||||
struct IGpAudioBuffer;
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
struct AudioChannel;
|
||||
@@ -11,7 +13,7 @@ namespace PortabilityLayer
|
||||
struct AudioChannel
|
||||
{
|
||||
virtual void Destroy(bool wait) = 0;
|
||||
virtual bool AddBuffer(const void *lengthTaggedBuffer, bool blocking) = 0;
|
||||
virtual bool AddBuffer(IGpAudioBuffer *buffer, bool blocking) = 0;
|
||||
virtual bool AddCallback(AudioChannelCallback_t callback, bool blocking) = 0;
|
||||
virtual void ClearAllCommands() = 0;
|
||||
virtual void Stop() = 0;
|
||||
|
Reference in New Issue
Block a user