xtd 1.0.0
Loading...
Searching...
No Matches
xtd::media::system_sound Class Reference
Inheritance diagram for xtd::media::system_sound:
xtd::object

Definition

Represents a system sound type.

class core_export_ system_sound : public xtd::object
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
#define core_export_
Define shared library export.
Definition core_export.hpp:13
Inheritance
xtd::objectxtd::media::system_sound
Header
#include <xtd/media/system_sound>
Namespace
xtd::media
Library
xtd.core

Public Methods

auto play () const -> void
 Plays the system sound type.

Additional Inherited Members

 object ()=default
 Create a new instance of the ultimate base class object.
virtual auto equals (const object &obj) const noexcept -> bool
 Determines whether the specified object is equal to the current object.
virtual auto get_hash_code () const noexcept -> xtd::usize
 Serves as a hash function for a particular type.
virtual auto get_type () const noexcept -> type_object
 Gets the type of the current instance.
template<typename object_t>
auto memberwise_clone () const -> xtd::unique_ptr_object< object_t >
 Creates a shallow copy of the current object.
virtual auto to_string () const -> xtd::string
 Returns a xtd::string that represents the current object.
template<typename object_a_t, typename object_b_t>
static auto equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool
 Determines whether the specified object instances are considered equal.
template<typename object_a_t, typename object_b_t>
static auto reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool
 Determines whether the specified object instances are the same instance.

Member Function Documentation

◆ play()

auto xtd::media::system_sound::play ( ) const -> void

Plays the system sound type.

Examples
The following code example demonstrates the use of the xtd::media::system_sounds::asterisk property.
// Plays the sound associated with the Asterisk system event.
system_sounds.asterisk().play();

The documentation for this class was generated from the following file: