|
| MediumRef | clone () const override |
| | Clones this movie medium and returns a new independent instance of this medium.
|
| |
| bool | start () override |
| | Starts the medium.
|
| |
| bool | pause () override |
| | Pauses the medium.
|
| |
| bool | stop () override |
| | Stops the medium.
|
| |
| bool | isStarted () const override |
| | Returns whether the medium is started currently.
|
| |
| double | duration () const override |
| | Returns the duration of the finite medium.
|
| |
| double | normalDuration () const override |
| | Returns the duration without speed consideration.
|
| |
| double | position () const override |
| | Returns the recent position of the finite medium.
|
| |
| bool | setPosition (const double position) override |
| | Sets the recent position of the finite medium.
|
| |
| float | speed () const override |
| | Returns the speed of the finite medium.
|
| |
| bool | setSpeed (const float speed) override |
| | Sets the speed of the finite medium.
|
| |
| bool | setLoop (const bool value) override |
| | Sets whether the medium has to be played in a loop.
|
| |
| float | soundVolume () const override |
| | Returns the volume of the sound in db.
|
| |
| bool | soundMute () const override |
| | Returns whether the sound medium is in a mute state.
|
| |
| bool | setSoundVolume (const float volume) override |
| | Sets the volume of the sound in db.
|
| |
| bool | setSoundMute (const bool mute) override |
| | Sets or un-sets the sound medium to a mute state.
|
| |
| Timestamp | startTimestamp () const override |
| | Returns the start timestamp.
|
| |
| Timestamp | pauseTimestamp () const override |
| | Returns the pause timestamp.
|
| |
| Timestamp | stopTimestamp () const override |
| | Returns the stop timestamp.
|
| |
| const std::string & | url () const |
| | Returns the url of the medium.
|
| |
| bool | isValid () const |
| | Returns whether the medium is valid.
|
| |
| const std::string & | library () const |
| | Returns the name of the owner library.
|
| |
| Type | type () const |
| | Returns the type of the medium.
|
| |
| bool | isType (const Type type) const |
| | Returns whether a medium has a given type.
|
| |
| bool | isExclusive () const |
| | Returns whether this medium can be use exclusively.
|
| |
| bool | loop () const |
| | Returns whether the medium is played in a loop.
|
| |
| virtual bool | taskFinished () const |
| | Returns whether a previous task has been finished.
|
| |
| bool | hasSound () const |
| | Returns whether the object holds a sound.
|
| |
| unsigned int | soundChannels () const |
| | Returns the number of sound channels.
|
| |
| SoundFrequency | soundFrequency () const |
| | Returns the frequency of the sound in Hz.
|
| |
| unsigned int | soundBitsPerSample () const |
| | Returns the number of bits per sample.
|
| |
| unsigned int | preferredSoundChannels () const |
| | Returns the preferred number of sound channels.
|
| |
| SoundFrequency | preferredSoundFrequency () const |
| | Returns the preferred sound frequency in Hz.
|
| |
| unsigned int | preferredSoundBitsPerSample () const |
| | Returns the preferred bits per sound sample.
|
| |
| virtual bool | setPreferredSoundChannels (const unsigned int channels) |
| | Sets the preferred number of sound channels.
|
| |
| virtual bool | setPreferredSoundFrequency (const SoundFrequency frequency) |
| | Sets the preferred sound frequency in Hz.
|
| |
| virtual bool | setPreferredSoundBitsPerSample (const unsigned int bits) |
| | Sets the preferred bits per sound sample.
|
| |
|
| | AAudio (const SLEngineItf &slEngineInterface, const std::string &url) |
| | Creates a new medium by a given url.
|
| |
| | ~AAudio () override |
| | Destructs the live video object.
|
| |
| bool | initialize (const SLEngineItf &slEngineInterface) |
| | Initializes the audio and all corresponding resources.
|
| |
| bool | release () |
| | Releases the audio and all corresponding resources.
|
| |
| void | callbackFunction (SLPlayItf slCaller, SLuint32 slEvent) |
| | The callback function for position events.
|
| |
Protected Member Functions inherited from Ocean::Media::Android::AMedium |
| | AMedium (const std::string &url) |
| | Creates a new medium by a given url.
|
| |
| | Medium (const Medium &medium)=delete |
| | Disabled copy constructor.
|
| |
| | Medium (const std::string &url) |
| | Creates a new medium by a given url.
|
| |
| virtual | ~Medium () |
| | Destructs a medium.
|
| |
| Medium & | operator= (const Medium &medium)=delete |
| | Disabled copy operator.
|
| |
| | Audio (const std::string &url) |
| | Creates a new audio by a given url.
|
| |
| | FiniteMedium (const std::string &url) |
| | Creates a new finite medium by a given url.
|
| |
| | SoundMedium (const std::string &url) |
| | Creates a new sound medium by a given url.
|
| |
|
| enum | Type : uint32_t {
MEDIUM = 0u
, FRAME_MEDIUM = 1u << 0u
, SOUND_MEDIUM = 1u << 1u
, FINITE_MEDIUM = 1u << 2u
,
LIVE_MEDIUM = 1u << 3u
, CONFIG_MEDIUM = 1u << 4u
, AUDIO = (1u << 5u) | FINITE_MEDIUM | SOUND_MEDIUM
, IMAGE = (1u << 6u) | FRAME_MEDIUM
,
PIXEL_IMAGE = (1u << 7u) | FRAME_MEDIUM
, BUFFER_IMAGE = (1u << 8u) | FRAME_MEDIUM
, IMAGE_SEQUENCE = (1u << 9u) | FRAME_MEDIUM | FINITE_MEDIUM
, LIVE_AUDIO = (1u << 10u) | LIVE_MEDIUM | SOUND_MEDIUM
,
LIVE_VIDEO = (1u << 11u) | LIVE_MEDIUM | FRAME_MEDIUM
, MICROPHONE = (1u << 12u) | LIVE_MEDIUM
, MOVIE = (1u << 13u) | FINITE_MEDIUM | FRAME_MEDIUM | SOUND_MEDIUM
} |
| | Definition of different medium types. More...
|
| |
| typedef float | SoundFrequency |
| | Definition of a sound frequency defined in Hz.
|
| |
Static Public Member Functions inherited from Ocean::Media::Android::AMedium |
| static bool | areInterfaceIdsIdentical (const SLInterfaceID &interfaceId0, const SLInterfaceID &interfaceId1) |
| | Returns whether two interface ids are identical.
|
| |
| static std::string | toAString (const SLInterfaceID &interfaceId) |
| | Returns the hex string of an interface id,.
|
| |
| static std::string | convertType (const Type type) |
| | Converts a medium type to a unique string.
|
| |
| static Type | convertType (const std::string &type) |
| | Converts a medium type string to a medium type.
|
| |
Static Public Attributes inherited from Ocean::Media::Android::AMedium |
| static constexpr SLInterfaceID_ | slEffectTypeNoiseSuppressorId_ = {0x58b4b260, 0x8e06, 0x11e0, 0xaa8e, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}} |
| | Definition of the interface for Noise Suppressor (NS).
|
| |
| static constexpr SLInterfaceID_ | slEffectTypeAcousticEchoCancelerId_ = {0x7b491460, 0x8d4d, 0x11e0, 0xbd61, {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}} |
| | Definition of the interface for Acoustic Echo Canceler (AEC).
|
| |
| static constexpr float | AS_FAST_AS_POSSIBLE = 0.0f |
| | Definition of a speed value allowing to deliver the media content as fast as possible.
|
| |
This class implements an Audio class for Android.