output/wrapper: add method SendTag()
This commit is contained in:
parent
06ec06cdd7
commit
ec41caade4
|
@ -67,6 +67,12 @@ struct AudioOutputWrapper {
|
||||||
return t.Delay();
|
return t.Delay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gcc_pure
|
||||||
|
static void SendTag(AudioOutput *ao, const Tag &tag) {
|
||||||
|
T &t = Cast(*ao);
|
||||||
|
t.SendTag(tag);
|
||||||
|
}
|
||||||
|
|
||||||
static size_t Play(AudioOutput *ao, const void *chunk, size_t size,
|
static size_t Play(AudioOutput *ao, const void *chunk, size_t size,
|
||||||
Error &error) {
|
Error &error) {
|
||||||
T &t = Cast(*ao);
|
T &t = Cast(*ao);
|
||||||
|
|
|
@ -227,14 +227,6 @@ RecorderOutput::SendTag(const Tag &tag)
|
||||||
LogError(error);
|
LogError(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
recorder_output_send_tag(AudioOutput *ao, const Tag &tag)
|
|
||||||
{
|
|
||||||
RecorderOutput &recorder = *(RecorderOutput *)ao;
|
|
||||||
|
|
||||||
recorder.SendTag(tag);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline size_t
|
inline size_t
|
||||||
RecorderOutput::Play(const void *chunk, size_t size, Error &error)
|
RecorderOutput::Play(const void *chunk, size_t size, Error &error)
|
||||||
{
|
{
|
||||||
|
@ -255,7 +247,7 @@ const struct AudioOutputPlugin recorder_output_plugin = {
|
||||||
&Wrapper::Open,
|
&Wrapper::Open,
|
||||||
&Wrapper::Close,
|
&Wrapper::Close,
|
||||||
nullptr,
|
nullptr,
|
||||||
recorder_output_send_tag,
|
&Wrapper::SendTag,
|
||||||
&Wrapper::Play,
|
&Wrapper::Play,
|
||||||
nullptr,
|
nullptr,
|
||||||
nullptr,
|
nullptr,
|
||||||
|
|
Loading…
Reference in New Issue