output/roar: export volume methods

Use these instead of exposing the internal roar_t struct.
This commit is contained in:
Max Kellermann
2011-09-17 19:33:51 +02:00
parent 5e22fe488e
commit 947848ebf6
4 changed files with 78 additions and 46 deletions

View File

@@ -55,6 +55,24 @@ pulse_output_set_volume(G_GNUC_UNUSED struct pulse_output *po,
#endif
#ifdef HAVE_ROAR
#include "output/roar_output_plugin.h"
int
roar_output_get_volume(G_GNUC_UNUSED struct roar *roar)
{
return -1;
}
bool
roar_output_set_volume(G_GNUC_UNUSED struct roar *roar,
G_GNUC_UNUSED unsigned volume)
{
return true;
}
#endif
#ifdef ENABLE_RAOP_OUTPUT
#include "output/raop_output_plugin.h"