xtd 0.2.0
Loading...
Searching...
No Matches
xtd::media::system_sound Class Reference
Inheritance diagram for xtd::media::system_sound:
xtd::iequatable< system_sound > xtd::object xtd::interface

Definition

Represents a system sound type.

Represents a system sound type.
Definition system_sound.h:27
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
#define core_export_
Define shared library export.
Definition core_export.h:13
Inheritance
xtd::objectxtd::media::system_sound
Header
#include <xtd/media/system_sound>
Namespace
xtd::media
Library
xtd.core

Public Methods

bool equals (const system_sound &sound) const noexcept override
 
void play () const
 Plays the system sound type.
 

Additional Inherited Members

- Public Member Functions inherited from xtd::iequatable< system_sound >
virtual bool equals (const system_sound &) const noexcept=0
 Indicates whether the current object is equal to another object of the same type.
 
- Public Member Functions inherited from xtd::object
 object ()=default
 Create a new instance of the ultimate base class object.
 
bool equals (const object &obj) const noexcept
 Determines whether the specified object is equal to the current object.
 
virtual size_t 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<typename object_t >
std::unique_ptr< object_t > memberwise_clone () const noexcept
 Creates a shallow copy of the current object.
 
virtual xtd::ustring to_string () const noexcept
 Returns a sxd::ustring that represents the current object.
 
- Static Public Member Functions inherited from xtd::object
static bool equals (const object &object_a, const object &object_b) noexcept
 Determines whether the specified object instances are considered equal.
 
static bool reference_equals (const object &object_a, const object &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.h:26
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: