sfml.js
Preparing search index...
Music
Class Music
Hierarchy
SoundSource
Music
Index
Constructors
constructor
Methods
get
Attenuation
get
Loop
get
Min
Distance
get
Pitch
get
Relative
To
Listener
get
Status
get
Volume
is
Relative
To
Listener
open
From
File
open
From
File
Sync
open
From
Memory
pause
play
set
Attenuation
set
Loop
set
Min
Distance
set
Pitch
set
Relative
To
Listener
set
Volume
stop
Constructors
constructor
new
Music
()
:
Music
Returns
Music
Methods
get
Attenuation
getAttenuation
()
:
number
Returns
number
get
Loop
getLoop
()
:
boolean
Returns
boolean
get
Min
Distance
getMinDistance
()
:
number
Returns
number
get
Pitch
getPitch
()
:
number
Returns
number
get
Relative
To
Listener
getRelativeToListener
()
:
boolean
Returns
boolean
get
Status
getStatus
()
:
Status
Returns
Status
get
Volume
getVolume
()
:
number
Returns
number
is
Relative
To
Listener
isRelativeToListener
()
:
boolean
Returns
boolean
open
From
File
openFromFile
(
filename
:
string
)
:
Promise
<
void
>
Parameters
filename
:
string
Returns
Promise
<
void
>
open
From
File
Sync
openFromFileSync
(
filename
:
string
)
:
boolean
Parameters
filename
:
string
Returns
boolean
open
From
Memory
openFromMemory
(
buff
:
Buffer
)
:
boolean
Parameters
buff
:
Buffer
Returns
boolean
pause
pause
()
:
void
Returns
void
play
play
()
:
void
Returns
void
set
Attenuation
setAttenuation
(
attenuation
:
number
)
:
void
Parameters
attenuation
:
number
Returns
void
set
Loop
setLoop
(
loop
:
boolean
)
:
void
Parameters
loop
:
boolean
Returns
void
set
Min
Distance
setMinDistance
(
distance
:
number
)
:
void
Parameters
distance
:
number
Returns
void
set
Pitch
setPitch
(
pitch
:
number
)
:
void
Parameters
pitch
:
number
Returns
void
set
Relative
To
Listener
setRelativeToListener
(
relative
:
boolean
)
:
void
Parameters
relative
:
boolean
Returns
void
set
Volume
setVolume
(
volume
:
number
)
:
void
Parameters
volume
:
number
Returns
void
stop
stop
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
Attenuation
get
Loop
get
Min
Distance
get
Pitch
get
Relative
To
Listener
get
Status
get
Volume
is
Relative
To
Listener
open
From
File
open
From
File
Sync
open
From
Memory
pause
play
set
Attenuation
set
Loop
set
Min
Distance
set
Pitch
set
Relative
To
Listener
set
Volume
stop
sfml.js
Loading...