Softanza
DémarrerEnglish
Softanza
La bibliothèque se documente elle-même · Son

stzSoundTransport

25 méthodes propres · 7 formes avec extensions, rangées sous leur méthode

la source: base/sound/stzSoundTransport.ring(s'ouvre dans un nouvel onglet) · Toutes les classes · La référence du domaine : Son

Sous chaque méthode, ses extensions (Q CS XT Z ZZ IB W U) : en gras et cochée, elle existe ; barrée, elle n'existe pas. Les extensions et leur sens

Aucune méthode de cette classe n'est exécutée sur cette page : la classe touche aux fichiers, au réseau, aux processus, à l'horloge, au hasard ou au son, et un exemple exécuté ici ne serait que l'exemple de ses effets. Chaque méthode porte l'explication que la bibliothèque donne d'elle-même.

Méthode
Explication, telle que la source la porte
init
(sans commentaire dans la source : le nom se lit comme une phrase) initaucune extension
State
what it is doingaucune extension
IsPlaying
(sans commentaire dans la source : le nom se lit comme une phrase) is playingaucune extension
IsPaused
(sans commentaire dans la source : le nom se lit comme une phrase) is pausedaucune extension
IsStopped
(sans commentaire dans la source : le nom se lit comme une phrase) is stoppedaucune extension
LastError
(sans commentaire dans la source : le nom se lit comme une phrase) last erroraucune extension
Refusals
How many moves the state machine refused. A transport that is being driven wrongly says so in a number rather than misbehaving quietly.aucune extension
PositionInFrames
Frames the DEVICE has consumed, not frames the graph has produced: the producer runs ahead by a ring's worth, so asking it would report a position up to a third of a second in the future. What the listener has heard is what the device has taken.aucune extension
PositionInSeconds
(sans commentaire dans la source : le nom se lit comme une phrase) position in secondsaucune extension
SampleRate
(sans commentaire dans la source : le nom se lit comme une phrase) sample rateaucune extension
Underruns
Frames the producer could not supply in time. Zero is the answer you want, and it is counted rather than guessed.aucune extension
Play
the movesQCSXTZZZIBWU
PlayFor
Play, and stop by itself after pnSeconds. The stop happens in Tick(), so it needs someone to be ticking -- RunFor and DriveWith both do.QCSXTZZZIBWU
Pause
(sans commentaire dans la source : le nom se lit comme une phrase) pauseQCSXTZZZIBWU
Resume
The graph carries on from where it was: pausing did not rewind it, so an envelope half way through its decay is still half way through it.QCSXTZZZIBWU
Stop
(sans commentaire dans la source : le nom se lit comme une phrase) stopQCSXTZZZIBWU
Rewind
Back to the top: the graph rewinds and the clock goes with it. Only legal when stopped, because rewinding under a running device is a jump.QCSXTZZZIBWU
Tick
being driven -------------------------------------------------------- One step. Cheap on purpose: it reads a counter and decides whether the sound has run out. Call it as often as you like.aucune extension
RunToEnd
Tick until it stops, without a reactive loop. This DOES occupy the thread -- it is the honest version of PlayFor for a script that has nothing else to do, and it still reports the position while it runs.aucune extension
RunFor
Same as PlayFor: Play, and stop by itself after pnSeconds. The stop happens in Tick(), so it needs someone to be ticking -- RunFor and DriveWith both do.aucune extension
DriveWith
THE REACTIVE CONVERGENCE. The transport does not own a loop; it owns a STEP. Hand it a stzReactive and the loop that already exists calls the step, alongside every timer, stream and task that loop is already carrying -- which is the whole point of there being one loop.QCSXTZZZIBWU
OnStarted
what to callaucune extension
OnFinished
(sans commentaire dans la source : le nom se lit comme une phrase) on finishedaucune extension
OnTick
(sans commentaire dans la source : le nom se lit comme une phrase) on tickaucune extension
Release
housekeepingaucune extension