You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
797 B
C++

// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project
#ifndef MPD_OUTPUT_CLIENT_HXX
#define MPD_OUTPUT_CLIENT_HXX
/**
* An interface between the #AudioOutput and the #Player.
*/
class AudioOutputClient {
public:
/**
* Notify the client that we have consumed a few chunks. This
* is called from within the output thread. The client may
* perform actions to refill the #MusicPipe.
*/
virtual void ChunksConsumed() = 0;
/**
* The #AudioOutput has modified the "enabled" flag, and the
* client shall make the #AudioOutput apply this new setting.
* This is called from any thread, one which can't send an
* AudioOutput::Command to the output thread; only the client
* can do that safely.
*/
virtual void ApplyEnabled() = 0;
};
#endif