# j-Sounds

> Acest component conține unele sunete predefinite, cum ar fi greșeli, eșecuri, succes, etc... Path conține un control de volum în procente, 0 disabilitatea de a juca.

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: ro
Content-SHA256: 459005db86ba917cfaf79656c73d50a65e417f711f833d108affe4a4c627ab4a
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

Acest component conține unele sunete predefinite, cum ar fi `beep`, `fail`, `success`, etc... Path conține un control de volum în procente, `0` interzice jocul.


__Configurarea__:

- `url {String}` Adresa URL pentru biblioteca sonoră (default: `https://cdn.componentator.com/sounds/`)
- `volume {Number}` (defaultă: `50`)

__bine să știi__:

`path` poate conține `{Number}`, care va controla volumul sau `{Boolean}`, care va permite sau dezactiva sunetele.

__Metode__:

- `component.play(sound)` susține sunete:
	- `alert`
	- `message`
	- `badges`
	- `notifications`
	- `beep`
	- `confirm`
	- `done`
	- `drum`
	- `fail`
	- `success`
- `component.success()`
- `component.fail()`
- `component.alert()`, `component.error()`
- `component.warning()`
- `component.notify()`
- `component.badge()`
- `component.confirm()`
- `component.beep()`
- `component.drum()`

Utilizați-l cu `<ui-component name="sounds">`Când componenta nu este încă încărcată, jComponent Descărcați-l la prima utilizare de la adresa `DEF.fallback` (în cazul Componentator Autor: Peter Širka. sursă: Componentator Componente de stocare, MIT licență.

```html example.html
<ui-component name="sounds" path="volume"></ui-component>

<script>
	var volume = 80;

	setTimeout(function() {
		SETTER('sounds/play', 'beep');
	}, 1000);

	setTimeout(function() {
		SETTER('sounds/play', 'drum');
	}, 3000);

	setTimeout(function() {
		SETTER('sounds/play', 'fail');
	}, 7000);

</script>
```
