Music Hub ..
A session-wide music playback service
platform_default_sink.h
Go to the documentation of this file.
1/*
2 * Copyright © 2014 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify it
5 * under the terms of the GNU Lesser General Public License version 3,
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authored by: Thomas Voß <thomas.voss@canonical.com>
17 */
18#ifndef CORE_UBUNTU_MEDIA_VIDEO_PLATFORM_DEFAULT_SINK_H_
19#define CORE_UBUNTU_MEDIA_VIDEO_PLATFORM_DEFAULT_SINK_H_
20
22
23#include <core/media/player.h>
24
25#include <functional>
26
27namespace core
28{
29namespace ubuntu
30{
31namespace media
32{
33namespace video
34{
35// A functor that allows for creating actual sinks given a texture id.
36typedef std::function<Sink::Ptr(std::uint32_t)> SinkFactory;
37// Returns the platform default sink factory for the player instance identified by the given key.
39 const AVBackend::Backend b);
40}
41}
42}
43}
44
45#endif // CORE_UBUNTU_MEDIA_VIDEO_PLATFORM_DEFAULT_SINK_H_
std::function< Sink::Ptr(std::uint32_t)> SinkFactory
SinkFactory make_platform_default_sink_factory(const Player::PlayerKey &key, const AVBackend::Backend b)
Definition: player.h:34
std::shared_ptr< Sink > Ptr
To save us some typing.
Definition: sink.h:39