# rmp::ui::SoundName

> The name of a sound, as rmp::audio::play() takes it ("click" is click.wav, click.ogg...): written as a string, `.click = "click"`.

Source: https://omardev29.github.io/rmp-docs/reference/classes/rmp-ui-SoundName.html

class `#include <rmp/ui.h>` [include/rmp/ui.h:279](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L279-L308)

class SoundName

The name of a sound, as [`rmp::audio::play()`](https://omardev29.github.io/rmp-docs/reference/namespaces/rmp-audio.html#play) takes it ("click" is click.wav, click.ogg...): written as a string, `.click = "click"`. Giving one is what brings the sound player into the game, so a UI that never names a sound carries none of [`rmp::audio`](https://omardev29.github.io/rmp-docs/reference/namespaces/rmp-audio.html)'s decoders.

### `SoundName`

template <std::size_t N> // NOLINTNEXTLINE(google-explicit

SoundName(std::string_view name)

SoundName(const std::string &name)

function [include/rmp/ui.h:284](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L284-L288)

An array, not a pointer: what a string literal is. Implicit, and C, for `.click = "click"`.

### `view`

std::string_view view() const

function [include/rmp/ui.h:297](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L297)

The name, as [`rmp::audio::play()`](https://omardev29.github.io/rmp-docs/reference/namespaces/rmp-audio.html#play) takes it; valid while this SoundName is.

### `empty`

bool empty() const

function [include/rmp/ui.h:299](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L299)

True for "": silence, which turns off a sound set further out.

### `operator==`

bool operator==(const SoundName &a, std::string_view b)

function [include/rmp/ui.h:301](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L301-L303)

True when it is that name: `sounds.click == "click"`.
