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
21
#include <
core/media/video/sink.h
>
22
23
#include <
core/media/player.h
>
24
25
#include <functional>
26
27
namespace
core
28
{
29
namespace
ubuntu
30
{
31
namespace
media
32
{
33
namespace
video
34
{
35
// A functor that allows for creating actual sinks given a texture id.
36
typedef
std::function<Sink::Ptr(std::uint32_t)>
SinkFactory
;
37
// Returns the platform default sink factory for the player instance identified by the given key.
38
SinkFactory
make_platform_default_sink_factory
(
const
Player::PlayerKey
& key);
39
}
40
}
41
}
42
}
43
44
#endif // CORE_UBUNTU_MEDIA_VIDEO_PLATFORM_DEFAULT_SINK_H_
core::ubuntu::media::video::make_platform_default_sink_factory
SinkFactory make_platform_default_sink_factory(const Player::PlayerKey &key)
Definition:
platform_default_sink.cpp:64
core::ubuntu::media::Player::PlayerKey
uint32_t PlayerKey
Definition:
player.h:47
player.h
core::ubuntu::media::video
Definition:
dimensions.h:31
core
Definition:
player.h:33
sink.h
core::ubuntu::media
Definition:
player.h:37
core::ubuntu::media::video::SinkFactory
std::function< Sink::Ptr(std::uint32_t)> SinkFactory
Definition:
platform_default_sink.h:36
src
core
media
video
platform_default_sink.h
Generated on Mon Apr 27 2015 23:48:55 for Music Hub by
1.8.9.1