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
createAudioSource
DescriptionCreate audio source object for 3D soundsDefinition
createAudioSource(string audioSourceName, string sampleFilename, float radius, float innerRadius, float volume, integer loops)Arguments
string | audioSourceName | audio source name |
string | sampleFilename | sample file name (.wav or .ogg) |
float | radius | radius |
float | innerRadius | inner radius |
float | volume | volume [0,1] |
integer | loops | number of loops |