Script v1.4.4.0
Engine v7.0.0.2
- General
- Entity
- Node
- Scenegraph
- Lighting
- Camera
- Shape
- Particle System
- Physics
- Spline
- Animation
- Overlays
- Sound
- createAudioSource
- createSample
- createStreamedSample
- getAudioSourceSample
- getCurrentMasterVolume
- getMasterVolume
- getSampleDuration
- getSamplePitch
- getSamplePlayOffset
- getSampleVelocity
- getSampleVolume
- getStreamedSampleVolume
- isSamplePlaying
- loadSample
- loadStreamedSample
- pauseStreamedSample
- playSample
- playStreamedSample
- resumeStreamedSample
- setAudioCullingWorldProperties
- setSamplePitch
- setSampleVelocity
- setSampleVolume
- setStreamedSampleVolume
- stopSample
- stopStreamedSample
- Input
- XML
- Network
- Callbacks
- Text Rendering
- Terrain Detail
- Tire Track
- Editor
- Rendering
- String
- Math
- I3D
- Fillplanes
Foundation Reference
playSample
DescriptionPlay sample objectDefinition
playSample(integer sampleId, integer loops, float volume, float offset)Arguments
integer | sampleId | id of the sample object |
integer | loops | number of loops [0,n] 0 = endless looping |
float | volume | volume [0,1] |
float | offset | offset in milliseconds |