Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 1 overload
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Loudness and pan for a listener at `listener` (world pixels).
void spatialize(const Fixed* here, const Fixed* listener, Fixed half_width)Loudness and pan for a listener at `listener` (world pixels).
| Parameter | Type | Meaning |
|---|---|---|
here | const Fixed * | Not documented; consult the linked header. |
listener | const Fixed * | Not documented; consult the linked header. |
half_width | Fixed | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "world2d_content.hpp"
// Assume these named values have been initialized with valid data:
// const Fixed * here
// const Fixed * listener
// Fixed half_width
epok::AudioPlayer2DComponent& object = /* obtain a valid instance */;
object.spatialize(here, listener, half_width);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_content.hpp:470
begin_playBegins play as part of the world2d content module.Methodclass_idPerforms `class id` as part of the world2d content module.Methodend_playEnds play as part of the world2d content module.Methodis_playingReports whether playing as part of the world2d content module.Methodlevel_attachedPerforms `level attached` as part of the world2d content module.Methodon_disablePerforms `on disable` as part of the world2d content module.MethodplayStarts play as part of the world2d content module.MethodreleasablePerforms `releasable` as part of the world2d content module.Methodset_clipSets clip as part of the world2d content module.Methodset_pitchSets pitch as part of the world2d content module.Methodset_volumeSets volume as part of the world2d content module.MethodstopStops stop as part of the world2d content module.Method