Plugin:MirLua/Module/m sounds/de: Difference between revisions
Jump to navigation
Jump to search
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 2: | Line 2: | ||
Erlaubt es Ihnen mit Sounds zu arbeiten. | Erlaubt es Ihnen mit Sounds zu arbeiten. | ||
{{Ls|MirLua/Modules/include_info}} | {{Ls|MirLua/Modules/include_info}} <code>local sounds = require('m_sounds')</code> | ||
__TOC__ | __TOC__ | ||
Line 14: | Line 14: | ||
! scope="col" | {{Ls|MirLua/Modules/param_name}} | ! scope="col" | {{Ls|MirLua/Modules/param_name}} | ||
! scope="col" | {{Ls|MirLua/Modules/required_param}} | ! scope="col" | {{Ls|MirLua/Modules/required_param}} | ||
! scope="col" | {{Ls| | ! scope="col" | {{Ls|Content/TableHeaders/type}} | ||
! scope="col" | {{Ls|Content/TableHeaders/description}} | ! scope="col" | {{Ls|Content/TableHeaders/description}} | ||
|- | |- | ||
Line 39: | Line 39: | ||
==== {{Ls|MirLua/Modules/result}} ==== | ==== {{Ls|MirLua/Modules/result}} ==== | ||
{{nbsp|5}}{{Ls|MirLua/Modules/type}} | {{nbsp|5}}{{Ls|MirLua/Modules/type}} <code>boolean</code> | ||
{{nbsp|5}}Gibt <code>true</code> zurück wenn der Sound erfolgreich registriert wurde, anderenfalls <code>false</code>. | {{nbsp|5}}Gibt <code>true</code> zurück wenn der Sound erfolgreich registriert wurde, anderenfalls <code>false</code>. | ||
Line 55: | Line 55: | ||
! scope="col" | {{Ls|MirLua/Modules/param_name}} | ! scope="col" | {{Ls|MirLua/Modules/param_name}} | ||
! scope="col" | {{Ls|MirLua/Modules/required_param}} | ! scope="col" | {{Ls|MirLua/Modules/required_param}} | ||
! scope="col" | {{Ls| | ! scope="col" | {{Ls|Content/TableHeaders/type}} | ||
! scope="col" | {{Ls|Content/TableHeaders/description}} | ! scope="col" | {{Ls|Content/TableHeaders/description}} | ||
|- | |- | ||
Line 65: | Line 65: | ||
==== {{Ls|MirLua/Modules/result}} ==== | ==== {{Ls|MirLua/Modules/result}} ==== | ||
{{nbsp|5}}{{Ls|MirLua/Modules/type}} | {{nbsp|5}}{{Ls|MirLua/Modules/type}} <code>boolean</code> | ||
{{nbsp|5}}Gibt <code>true</code> zurück wenn der Sound erfolgreich abgespielt wurde, anderenfalls <code>false</code>. | {{nbsp|5}}Gibt <code>true</code> zurück wenn der Sound erfolgreich abgespielt wurde, anderenfalls <code>false</code>. | ||
Line 81: | Line 81: | ||
! scope="col" | {{Ls|MirLua/Modules/param_name}} | ! scope="col" | {{Ls|MirLua/Modules/param_name}} | ||
! scope="col" | {{Ls|MirLua/Modules/required_param}} | ! scope="col" | {{Ls|MirLua/Modules/required_param}} | ||
! scope="col" | {{Ls| | ! scope="col" | {{Ls|Content/TableHeaders/type}} | ||
! scope="col" | {{Ls|Content/TableHeaders/description}} | ! scope="col" | {{Ls|Content/TableHeaders/description}} | ||
|- | |- | ||
Line 91: | Line 91: | ||
==== {{Ls|MirLua/Modules/result}} ==== | ==== {{Ls|MirLua/Modules/result}} ==== | ||
{{nbsp|5}}{{Ls|MirLua/Modules/type}} | {{nbsp|5}}{{Ls|MirLua/Modules/type}} <code>boolean</code> | ||
{{nbsp|5}}Gibt <code>true</code> zurück wenn der Sound erfolgreich abgespielt wurde, anderenfalls <code>false</code>. | {{nbsp|5}}Gibt <code>true</code> zurück wenn der Sound erfolgreich abgespielt wurde, anderenfalls <code>false</code>. |
Revision as of 14:00, 2 June 2018
Erlaubt es Ihnen mit Sounds zu arbeiten.
Inkludieren Sie folgendes Modul: local sounds = require('m_sounds')
Funktionen
AddSound
Registriert einen Sound
Parameter
Parametername | Benötigt | Typ | Beschreibung |
---|---|---|---|
name | Ja | string
|
Eindeutiger Name. |
description | Ja | string
|
Beschreibung. |
section | Nein | string
|
Name der Gruppe in den Miranda-Sound-Einstellunge. Standardmäßig wird der Name des Plugins (MirLua) verwendet. |
path | Nein | string
|
Pfad zur Sounddatei. |
Ergebnis
Typ: boolean
Gibt true
zurück wenn der Sound erfolgreich registriert wurde, anderenfalls false
.
Beispiel
local hIcon = sounds.AddSound('soundUniqueName', 'My super icon')
PlaySound
Spielt den Sound zum eindeutigen Namen.
Parameter
Parametername | Benötigt | Typ | Beschreibung |
---|---|---|---|
name | Ja | string
|
Eindeutiger Name. |
Ergebnis
Typ: boolean
Gibt true
zurück wenn der Sound erfolgreich abgespielt wurde, anderenfalls false
.
Beispiel
sounds.PlaySound('soundUniqueName')
PlayFile
Spielt Sound aus einer Datei.
Parameter
Parametername | Benötigt | Typ | Beschreibung |
---|---|---|---|
path | Ja | string
|
Pfad zur Datei. |
Ergebnis
Typ: boolean
Gibt true
zurück wenn der Sound erfolgreich abgespielt wurde, anderenfalls false
.
Beispiel
sounds.PlayFile('c:\\lambada.wav')