Source (Deutsch)

Eine Geräuschquelle (engl.: Source) stellt einen Ton dar, welcher abgespielt und bearbeitet werden kann.

Es lassen sich interessante Dinge mit Geräuschquellen anstellen. So kann zum Beispiel die Lautstärke, die Tonhöhe oder die Position des Tons in der Spielewelt verändert werden.

Der Zustand einer Quelle kann wie folgt kontrolliert werden.

Anhalten Abspielen Pausieren
play() Abspielen Unverändert Abspielen
stop() Unverändert Anhalten + Zurückspulen Anhalten + Zurückspulen
pause() Unverändert Pausieren Unverändert
resume() Unverändert Unverändert Abspielen
rewind() Unverändert Zurückspulen + Abspielen Zurückspulen + Pausieren

Dargestellt als Flow-Chart:

SourceControls.png

Konstruktoren

love.audio.newSource (Deutsch) Erstellt aus einer Datei eine neue Source, entweder SoundData oder Decoder.

Funktionen

Source:clone Creates an identical copy of the Source in the stopped state. Added since 0.9.1
Source:clone (Deutsch) Erstellt eine identische Kopie einer Geräuschquelle. Added since 0.9.1
Source:getActiveEffects Gets a list of the Source's active effect names. Added since 11.0
Source:getAirAbsorption Gets the amount of air absorption applied to the Source. Added since 11.2
Source:getAttenuationDistances Gets the reference and maximum attenuation distances of the Source. Added since 0.9.0
Source:getChannelCount Gets the number of channels in the Source. Added since 11.0
Source:getChannels Gets the number of channels in the Source. Added since 0.9.0
Source:getCone Gets the Source's directional volume cones. Added since 0.9.0
Source:getDirection Gets the direction of the Source. Added since 0.7.0
Source:getDirection (Deutsch) Gibt die Richtung der Quelle zurück. Added since 0.7.0
Source:getDistance Returns the reference and maximum distance of the source. Added since 0.8.0 Removed in 0.9.0
Source:getDuration Gets the duration of the Source. Added since 0.10.0
Source:getEffect Retrieve filter settings associated to a specific effect. Added since 11.0
Source:getFilter Gets the filter settings currently applied to the Source. Added since 11.0
Source:getFreeBufferCount Gets the number of free buffer slots of a queueable Source. Added since 11.0
Source:getPitch Gets the current pitch of the Source.
Source:getPitch (Deutsch) Gibt die aktuelle Tonhöhe der Quelle zurück.
Source:getPosition Gets the position of the Source. Added since 0.7.0
Source:getRolloff Returns the rolloff factor of the source. Added since 0.8.0
Source:getType Gets the type of the Source. Added since 0.10.0
Source:getVelocity Gets the velocity of the Source. Added since 0.7.0
Source:getVolume Gets the current volume of the Source.
Source:getVolumeLimits Returns the volume limits of the source. Added since 0.8.0
Source:isLooping Returns whether the Source will loop.
Source:isLooping (Deutsch) Gibt zurück, ob die Quelle sich wiederholt.
Source:isPaused Returns whether the Source is paused. Added since 0.7.1 Removed in 11.0
Source:isPaused (Deutsch) Wahr, wenn die Quelle pausiert ist. Added since 0.7.1 Removed in 11.0
Source:isPlaying Returns whether the Source is playing. Added since 0.9.0
Source:isRelative Gets whether the Source's position and direction are relative to the listener. Added since 0.9.0
Source:isStatic Returns whether the Source is static. Added since 0.7.0 Removed in 0.10.0
Source:isStatic (Deutsch) Gibt zurück, ob die Quelle statisch ist. Added since 0.7.0
Source:isStopped Returns whether the Source is stopped. Removed in 11.0
Source:isStopped (Deutsch) Gibt zurück, ob die Quelle gestoppt ist.
Source:pause Pauses a source. Added since 0.7.0
Source:play Plays a source. Added since 0.7.0
Source:play (Deutsch) Spielt eine Quelle ab. Added since 0.7.0
Source:queue Queues SoundData for playback in a queueable Source. Added since 11.0
Source:resume Resumes a paused source. Added since 0.7.0 Removed in 11.0
Source:rewind Rewinds a source. Added since 0.7.0 Removed in 11.0
Source:seek Sets the currently playing position of the Source. Added since 0.8.0
Source:setAirAbsorption Sets the amount of air absorption applied to the Source. Added since 11.2
Source:setAttenuationDistances Sets the reference and maximum attenuation distances of the Source. Added since 0.9.0
Source:setCone Sets the Source's directional volume cones. Added since 0.9.0
Source:setDirection Sets the direction of the Source. Added since 0.7.0
Source:setDistance Sets the reference and maximum distance of the source. Added since 0.8.0 Removed in 0.9.0
Source:setEffect Applies an audio effect to the Source. Added since 11.0
Source:setFilter Sets a low-pass, high-pass, or band-pass filter to apply when playing the Source. Added since 11.0
Source:setLooping Sets whether the Source should loop.
Source:setLooping (Deutsch) Sets whether the Source should loop.
Source:setPitch Sets the pitch of the Source.

... further results

Supertypen

Siehe auch


Andere Sprachen