getSoundProperties: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=getStreamProperties |version=1.5.5 |description= Get the properties of an audio stream currently loaded in memory. |usage= <source lang="mtmacro" line>...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{stub|Needs examples of function use and output}}
{{MacroFunction
{{MacroFunction
|name=getStreamProperties
|name=getSoundProperties
|version=1.5.5
|version=1.5.5
|description=
|description=
Get the properties of an audio stream currently loaded in memory.
Get the properties of an audio source currently loaded in memory.


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
getStreamProperties()
getSoundProperties()
getStreamProperties(uri)
getSoundProperties(uri)
</source>
</syntaxhighlight>


'''Parameter'''
'''Parameter'''
{{param|uri|The uri/url of the stream to edit. If set to "*", a [[JSON Array]] containing the properties of all streams is returned. Defaults to "*".}}
{{param|uri|The uri/url of the audio source to edit. If set to "*", a [[JSON Array]] containing the properties of all audio sources is returned. Defaults to "*".}}


Properties returned for streams: nicknames, uri, cycleCount, volume, startTime, stopTime, currentTime, totalTime, bufferTime,  currentCount, status.
Properties returned for clips: nicknames, uri, cycleCount, volume.
|changes=
* '''1.5.7''' - Renamed to support both audio streams and clips.
}}
}}
[[Category:Audio Function]]
[[Category:Audio Function]]

Latest revision as of 23:59, 14 March 2023

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
 This article needs: Needs examples of function use and output

getSoundProperties() Function

Introduced in version 1.5.5
Get the properties of an audio source currently loaded in memory.

Usage

getSoundProperties()
getSoundProperties(uri)

Parameter

  • uri - The uri/url of the audio source to edit. If set to "*", a JSON Array containing the properties of all audio sources is returned. Defaults to "*".

Properties returned for streams: nicknames, uri, cycleCount, volume, startTime, stopTime, currentTime, totalTime, bufferTime, currentCount, status.

Properties returned for clips: nicknames, uri, cycleCount, volume.


Version Changes

  • 1.5.7 - Renamed to support both audio streams and clips.