Difference between revisions of "Source (日本語)"

m
m (そのほかの言語)
 
(2 intermediate revisions by the same user not shown)
Line 43: Line 43:
 
== 列挙型 ==
 
== 列挙型 ==
 
{{#ask: [[Category:Enums]] [[parent::Source (日本語)]] [[Concept:Current]]
 
{{#ask: [[Category:Enums]] [[parent::Source (日本語)]] [[Concept:Current]]
 +
| headers=hide
 +
| format=template
 +
| template=ListingFields
 +
| introtemplate=ListingIntro
 +
| outrotemplate=ListingOutro
 +
| ?Description
 +
| ?PrettySince
 +
| ?PrettyRemoved
 +
}}
 +
 
== 上位型 ==
 
== 上位型 ==
 
* [[parent::Object (日本語)]]
 
* [[parent::Object (日本語)]]
Line 52: Line 62:
  
 
== そのほかの言語 ==
 
== そのほかの言語 ==
{{i18n(日本語)|Source}}
+
{{i18n (日本語)|Source}}

Latest revision as of 16:21, 3 December 2019

Source は音声の再生を提供します。 Source は音量、音程、及びリスナーの相対的座標の設定といったような面白いことができます。 注意として音声の座標は モノラル (つまり、非・ステレオ) 音源のみ動作します。

Source の制御 (再生/一時停止/停止) は下記の状態一覧表にある動作と合致します。

再生中 一時停止後
play() 無変更 再生
stop() 停止 + 巻き戻し 巻き戻し
pause() 一時停止 無変更

さらに流れ図を扇状に展開します(注釈: 掲載されていない呼び出しは無効であるため、動作としては巻き戻しを行います)。

NewSourceControls.png

コンストラクタ

love.audio.newQueueableSource (日本語) Source:queue でのリアルタイム生成音声の再生用に Source を新規作成します。 Added since 11.0
love.audio.newSource (日本語) ファイルパス, File, Decoder または SoundData から Source を新規作成します。

関数

Object:release (日本語) Lua が参照しているオブジェクトを即時破棄します。 Added since 11.0
Object:type (日本語) オブジェクトの種類を文字列形式で取得します。
Object:typeOf (日本語) オブジェクトが特定の種類かどうか確認します。
Source:clone (日本語) Source と同一の複製を停止状態に設定して作成します。 Added since 0.9.1
Source:getActiveEffects (日本語) Source で現在有効なエフェクト名のリストを取得します。 Added since 11.0
Source:getAirAbsorption (日本語) Source に適用される空気吸収量を取得します。 Added since 11.0
Source:getAttenuationDistances (日本語) Source の基準及び最大減衰距離を取得します。 Added since 0.9.0
Source:getChannelCount (日本語) Source のチャンネル数を取得します。 Added since 11.0
Source:getChannels (日本語) Source のチャンネル数を取得します。 Added since 0.9.0 Removed in 11.0
Source:getCone (日本語) Source の方向にある音量錐を取得します。 Added since 0.9.0
Source:getDirection (日本語) Source の方向を取得します。 Added since 0.7.0
Source:getDistance (日本語) Source の基準および最大距離を返します。 Added since 0.8.0 Removed in 0.9.0
Source:getDuration (日本語) Source の継続時間を取得します。 Added since 0.10.0
Source:getEffect (日本語) 指定のエフェクトに関連付けられているフィルタの設定を取得します。 Added since 11.0
Source:getFilter (日本語) この Source で現在使われているフィルタの設定を取得します。 Added since 11.0
Source:getFreeBufferCount (日本語) キュー方式の Source で使用できる空きバッファのスロット数を取得します。 Added since 11.0
Source:getPitch (日本語) Source における現在の音程を取得します。
Source:getPosition (日本語) Source の座標を取得します。 Added since 0.7.0
Source:getRolloff (日本語) Source のロールオフ係数を返します。 Added since 0.8.0
Source:getType (日本語) Source の種類を取得します。 Added since 0.10.0
Source:getVelocity (日本語) Source の速度を取得します。 Added since 0.7.0
Source:getVolume (日本語) Source の現在の音量を取得します。
Source:getVolumeLimits (日本語) Source の音量制限を取得します。 Added since 0.8.0
Source:isLooping (日本語) Source がループ再生されているかどうか返します。
Source:isPaused (日本語) Source が一時停止中かどうか返します。 Added since 0.7.1 Removed in 11.0
Source:isPlaying (日本語) Source が再生中かどうか返します。 Added since 0.9.0
Source:isRelative (日本語) Source の座標、速度、方向および錐角がリスナーと相対的であるか取得します。 Added since 0.9.0
Source:isStatic (日本語) Source が static かどうか返します。 Added since 0.7.0 Removed in 0.10.0
Source:isStopped (日本語) Source が停止中かどうか返します。 Removed in 11.0
Source:pause (日本語) Source を一時停止します。 Added since 0.7.0
Source:play (日本語) Source を再生します。 Added since 0.7.0
Source:queue (日本語) キュー方式の Source を再生するために SoundData をキューへ挿入します。 Added since 11.0
Source:resume (日本語) 一時停止を行った Source の再生を再開します。 Added since 0.7.0 Removed in 11.0
Source:rewind (日本語) Source を巻き戻します。 Added since 0.7.0 Removed in 11.0
Source:seek (日本語) 現在再生中の Source へ再生位置を設定します。 Added since 0.8.0
Source:setAirAbsorption (日本語) Source に適用される空気吸収量を設定します。 Added since 11.0
Source:setAttenuationDistances (日本語) Source の基準及び最大減衰距離を設定します。 Added since 0.9.0
Source:setCone (日本語) Source の方向にある音量錐を設定します。 Added since 0.9.0
Source:setDirection (日本語) Source の方向を設定します。 Added since 0.7.0
Source:setDistance (日本語) Source の基準および最大距離を設定します。 Added since 0.8.0 Removed in 0.8.0
Source:setEffect (日本語) 音声エフェクトを Source に適用します。 Added since 11.0
Source:setFilter (日本語) Source 再生時に使うローパス、ハイパス、またはバンドパスフィルタを設定します。 Added since 11.0
Source:setLooping (日本語) Source をループ再生するかどうか設定します。
Source:setPitch (日本語) Source における現在の音程を設定します。
Source:setPosition (日本語) Source の座標を設定します。 Added since 0.7.0
Source:setRelative (日本語) Source の座標、速度、方向および錐角がリスナーと相対的であるかどうかを取得します。 Added since 0.9.0
Source:setRolloff (日本語) ロールオフ係数を設定します。 Added since 0.8.0
Source:setVelocity (日本語) Source の速度を設定します。 Added since 0.7.0
Source:setVolume (日本語) Source の現在の音量を設定します。
Source:setVolumeLimits (日本語) 音量制限を Source へ設定します。 Added since 0.8.0
Source:stop (日本語) Source の再生を停止します。 Added since 0.7.0
Source:tell (日本語) 現在再生中の Source の再生位置を取得します。 Added since 0.8.0

列挙型

FilterType (日本語) Source で使えるフィルタの種類です。 Added since 11.0
SourceType (日本語) 音声 Source の種別。

上位型

関連


そのほかの言語