Ocean
Loading...
Searching...
No Matches
MFAudio.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) Meta Platforms, Inc. and affiliates.
3
*
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*/
7
8
#ifndef META_OCEAN_MEDIA_MF_AUDIO_H
9
#define META_OCEAN_MEDIA_MF_AUDIO_H
10
11
#include "
ocean/media/mediafoundation/MediaFoundation.h
"
12
#include "
ocean/media/mediafoundation/MFFiniteMedium.h
"
13
#include "
ocean/media/mediafoundation/MFSoundMedium.h
"
14
15
#include "
ocean/media/Audio.h
"
16
17
namespace
Ocean
18
{
19
20
namespace
Media
21
{
22
23
namespace
MediaFoundation
24
{
25
26
/**
27
* This class implements a Media Foundation audio object.
28
* @ingroup mediamf
29
*/
30
class
OCEAN_MEDIA_MF_EXPORT
MFAudio
:
31
public
virtual
MFFiniteMedium
,
32
public
virtual
MFSoundMedium
,
33
public
virtual
Audio
34
{
35
friend
class
MFLibrary
;
36
37
public
:
38
39
/**
40
* Clones this medium and returns a new independent instance of this medium.
41
* @see Medium::clone().
42
*/
43
MediumRef
clone
()
const override
;
44
45
protected
:
46
47
/**
48
* Creates a new audio by a given url.
49
* @param url The URL of the audio
50
*/
51
explicit
MFAudio
(
const
std::string&
url
);
52
53
/**
54
* Destructs a MFAudio object.
55
*/
56
~MFAudio
()
override
;
57
58
/**
59
* Creates and builds the topology of this object.
60
* @see MFMedium::createTopology().
61
*/
62
bool
createTopology
(
const
bool
respectPlaybackTime)
override
;
63
64
/**
65
* Releases the topology.
66
*/
67
void
releaseTopology
()
override
;
68
};
69
70
}
71
72
}
73
74
}
75
76
#endif
// META_OCEAN_MEDIA_DS_AUDIO_H
Audio.h
MFFiniteMedium.h
MFSoundMedium.h
MediaFoundation.h
Ocean::Media::Audio::Audio
Audio(const std::string &url)
Creates a new audio by a given url.
Ocean::Media::MediaFoundation::MFAudio::MFLibrary
friend class MFLibrary
Definition
MFAudio.h:35
Ocean::Media::MediaFoundation::MFAudio::clone
MediumRef clone() const override
Clones this medium and returns a new independent instance of this medium.
Ocean::Media::MediaFoundation::MFAudio::~MFAudio
~MFAudio() override
Destructs a MFAudio object.
Ocean::Media::MediaFoundation::MFAudio::releaseTopology
void releaseTopology() override
Releases the topology.
Ocean::Media::MediaFoundation::MFAudio::createTopology
bool createTopology(const bool respectPlaybackTime) override
Creates and builds the topology of this object.
Ocean::Media::MediaFoundation::MFAudio::MFAudio
MFAudio(const std::string &url)
Creates a new audio by a given url.
Ocean::Media::MediaFoundation::MFFiniteMedium::MFFiniteMedium
MFFiniteMedium(const std::string &url)
Creates a new finite medium by a given URL.
Ocean::Media::MediaFoundation::MFSoundMedium::MFSoundMedium
MFSoundMedium(const std::string &url)
Creates a new sound medium by a given URL.
Ocean::Media::Medium::url
const std::string & url() const
Returns the url of the medium.
Definition
Medium.h:236
Ocean::Media::MediumRef
ObjectRef< Medium > MediumRef
This class implements a medium reference with an internal reference counter.
Definition
Medium.h:30
Ocean::Media::MediaFoundation
Namespace of the Media MediaFoundation library.
Definition
MediaFoundation.h:46
Ocean::Media
Namespace of the Media library.
Definition
AAudio.h:26
Ocean
The namespace covering the entire Ocean framework.
Definition
Accessor.h:15
impl
ocean
media
mediafoundation
MFAudio.h
Generated on
for Ocean by
1.15.0