xtd 0.2.0
xtd::media::system_sound Class Reference
Inheritance diagram for xtd::media::system_sound:
xtd::object

Definition

Represents a system sound type.

Represents a system sound type.
Definition system_sound.hpp:28
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
#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

void play () const
 Plays the system sound type.
 

Additional Inherited Members

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

Member Function Documentation

◆ play()

void xtd::media::system_sound::play ( ) const

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.
void play() const
Plays the system sound type.
Retrieves sounds associated with a set of Windows operating system sound-event types....
Definition system_sounds.hpp:28
static system_sound asterisk()
Gets the sound associated with the Asterisk program event in the current Windows sound scheme.

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