2 * Copyright 2015, Dario Casalinuovo. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 #include <MediaClient.h>
7 #include <MediaConnection.h>
13 media_client::Id() const
20 media_client::Kinds() const
27 media_connection::Client() const
34 media_connection::Id() const
40 media_connection_kinds
41 media_connection::Kinds() const
48 media_connection::IsInput() const
50 return Kinds() == B_MEDIA_INPUT
;
55 media_connection::IsOutput() const
57 return Kinds() == B_MEDIA_OUTPUT
;
62 media_connection::_MediaInput() const
65 input
.node
= client
.node
;
66 input
.source
= source
;
67 input
.destination
= destination
;
68 input
.format
= format
;
74 media_connection::_MediaOutput() const
77 output
.node
= client
.node
;
78 output
.source
= source
;
79 output
.destination
= destination
;
80 output
.format
= format
;
86 media_connection::_Source() const
92 const media_destination
&
93 media_connection::_Destination() const
100 media_connection::_RemoteNode() const
107 media_connection::_Node() const