diff --git a/.buildinfo b/.buildinfo index 44fb98c..198bf8b 100644 --- a/.buildinfo +++ b/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 15f696dd8f7d3d70ce592a5e4a09ce3d +config: f0bd540ce3009d000622d0bef4101383 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/reference/buffer.html b/reference/buffer.html index b6edaee..39e70be 100644 --- a/reference/buffer.html +++ b/reference/buffer.html @@ -117,10 +117,10 @@
class palace.Buffer
-

Buffer of preloaded PCM samples coming from a Decoder.

-

Cached buffers must be freed using destroy before destroying -context. Alternatively, this can be used as a context manager -that calls destroy upon completion of the block, +

Buffer of preloaded PCM samples coming from a Decoder.

+

Cached buffers must be freed using destroy before destroying +context. Alternatively, this can be used as a context manager +that calls destroy upon completion of the block, even if an error occurs.

Parameters
@@ -128,7 +128,7 @@ even if an error occurs.

  • name (str) – Audio file or resource name. Multiple calls with the same name will return the same buffer.

  • context (Optional[Context], optional) – The context from which the buffer is to be created and cached. -By default current_context() is used.

  • +By default current_context() is used.

    @@ -158,7 +158,7 @@ By default current_context() is used.

    destroy() → None

    Free the buffer’s cache.

    -

    This invalidates all other Buffer objects with the same name.

    +

    This invalidates all other Buffer objects with the same name.

    @@ -178,12 +178,12 @@ By default current_context() is used.

  • name (str) – The name to give to the buffer. It may alias an audio file, but it must not currently exist in the buffer cache.

  • context (Optional[Context], optional) – The context from which the buffer is to be created. -By default current_context() is used.

  • +By default current_context() is used.

    Raises

    RuntimeError – If there is neither any context specified nor current; - or if name is already used for another buffer.

    + or if name is already used for another buffer.

    @@ -204,9 +204,9 @@ By default current_context() is used.

    loop_points

    Loop points for looping sources.

    -

    If AL_SOFT_loop_points extension is not supported by the -current context, start = 0 and end = length respectively. -Otherwise, start < end <= length.

    +

    If AL_SOFT_loop_points extension is not supported by the +current context, start = 0 and end = length respectively. +Otherwise, start < end <= length.

    Returns

      @@ -223,8 +223,8 @@ Otherwise, start < end <= length.

      play(source: Optional[palace.Source])palace.Source
      -

      Play source using the buffer.

      -

      Return the source used for playing. If None is given, +

      Play source using the buffer.

      +

      Return the source used for playing. If None is given, create a new one.

      One buffer may be played from multiple sources simultaneously.

      @@ -241,8 +241,8 @@ create a new one.

      Storage size used by the buffer, in bytes.

      Notes

      The size in bytes may not be what you expect from the length, -as it may take more space internally than the channel_config -and sample_type suggest.

      +as it may take more space internally than the channel_config +and sample_type suggest.

    @@ -250,15 +250,15 @@ and sample_type suggest.

    property source_count

    Number of sources currently using the buffer.

    Notes

    -

    Context.update needs to be called to reliably ensure the count +

    Context.update needs to be called to reliably ensure the count is kept updated for when sources reach their end. This is -equivalent to calling len(self.sources).

    +equivalent to calling len(self.sources).

    property sources
    -

    Source objects currently playing the buffer.

    +

    Source objects currently playing the buffer.

    @@ -274,11 +274,11 @@ equivalent to calling len(self.sources).

    Cached buffers must be freed before destroying the context.

    The resources will be scheduled for caching asynchronously, and should be retrieved later when needed by initializing -Buffer corresponding objects. Resources that cannot be +Buffer corresponding objects. Resources that cannot be loaded, for example due to an unsupported format, will be -ignored and a later Buffer initialization will raise +ignored and a later Buffer initialization will raise an exception.

    -

    If context is not given, current_context() will be used.

    +

    If context is not given, current_context() will be used.

    Raises

    RuntimeError – If there is neither any context specified nor current.

    @@ -299,7 +299,7 @@ an exception.

    palace.free(names: Iterable[str], context: Optional[palace.Context] = None) → None

    Free cached audio resources given their names.

    -

    If context is not given, current_context() will be used.

    +

    If context is not given, current_context() will be used.

    Raises

    RuntimeError – If there is neither any context specified nor current.

    diff --git a/reference/context.html b/reference/context.html index d3208ae..2180f3a 100644 --- a/reference/context.html +++ b/reference/context.html @@ -138,7 +138,7 @@ such as sources, buffers and effects.

    Parameters
      -
    • device (Device) – The device on which the context is to be created.

    • +
    • device (Device) – The device on which the context is to be created.

    • attrs (Dict[int, int]) – Attributes specified for the context to be created.

    @@ -180,7 +180,7 @@ such as sources, buffers and effects.

    property available_resamplers

    The list of resamplers supported by the context.

    -

    If AL_SOFT_source_resampler extension is unsupported, +

    If AL_SOFT_source_resampler extension is unsupported, this will be an empty list. Otherwise there would be at least one entry.

    This method require the context to be current.

    @@ -190,7 +190,7 @@ at least one entry.

    property default_resampler_index

    The context’s default resampler index.

    -

    If AL_SOFT_source_resampler extension is unsupported, +

    If AL_SOFT_source_resampler extension is unsupported, this will return 0.

    If you try to access the resampler list with this index without extension, undefined behavior will occur @@ -218,7 +218,7 @@ closer than its reference distance or farther than its max distance.

    Raises
    -

    ValueError – If set to a preset cannot be found in distance_models.

    +

    ValueError – If set to a preset cannot be found in distance_models.

    @@ -265,7 +265,7 @@ distance.

    distance-related time effects.

    The default is 343.3 units per second (a realistic speed assuming 1 meter per unit). If this is adjusted for a -different unit scale, Listener.meters_per_unit should +different unit scale, Listener.meters_per_unit should also be adjusted.

    @@ -288,12 +288,12 @@ also be adjusted.

    class palace.Listener

    Listener instance of the given context.

    It is recommended that applications access the listener via -Context.listener, which avoid the overhead caused by the +Context.listener, which avoid the overhead caused by the creation of the wrapper object.

    Parameters

    context (Optional[Context], optional) – The context on which the listener instance is to be created. -By default current_context() is used.

    +By default current_context() is used.

    Raises

    RuntimeError – If there is neither any context specified nor current.

    @@ -312,7 +312,7 @@ By default current_context() is used.

    This is used for various effects relying on the distance in meters including air absorption and initial reverb decay. If this is changed, so should the speed of sound -(e.g. context.speed_of_sound = 343.3 / meters_per_unit +(e.g. context.speed_of_sound = 343.3 / meters_per_unit to maintain a realistic 343.3 m/s for sound propagation).

    @@ -354,7 +354,7 @@ the doppler effect.

    Applications may derive from this and set an instance on a context to receive messages. The base methods are no-ops, so subclasses only need to implement methods for relevant messages.

    -

    Exceptions raised from MessageHandler instances are ignored.

    +

    Exceptions raised from MessageHandler instances are ignored.

    buffer_loading(name: str, channel_config: str, sample_type: str, sample_rate: int, data: Sequence[int]) → None
    @@ -365,7 +365,7 @@ being loaded asynchronously.

    Parameters
      -
    • name (str) – Resource name passed to Buffer.

    • +
    • name (str) – Resource name passed to Buffer.

    • channel_config (str) – Channel configuration of the given audio data.

    • sample_type (str) – Sample type of the given audio data.

    • sample_rate (int) – Sample rate of the given audio data.

    • @@ -383,23 +383,23 @@ following Python buffer protocol.

      device_disconnected(device: palace.Device) → None

      Handle disconnected device messages.

      This is called when the given device has been disconnected and -is no longer usable for output. As per ALC_EXT_disconnect +is no longer usable for output. As per ALC_EXT_disconnect specification, disconnected devices remain valid, however all playing sources are automatically stopped, any sources that are attempted to play will immediately stop, and new contexts may not be created on the device.

      Notes

      -

      Connection status is checked during Context.update calls, so +

      Connection status is checked during Context.update calls, so method must be called regularly to be notified when a device is disconnected. This method may not be called if the device lacks -support for ALC_EXT_disconnect extension.

      +support for ALC_EXT_disconnect extension.

    resource_not_found(name: str) → str

    Return the fallback resource for the one of the given name.

    -

    This is called when name is not found, allowing substitution +

    This is called when name is not found, allowing substitution of a different resource until the returned string either points to a valid resource or is empty (default).

    For buffers being cached, the original name will still be used @@ -416,9 +416,9 @@ because of one of the following reasons:

    • There were no more mixing sources and a higher-priority source preempted it.

    • -
    • source is part of a SourceGroup (or sub-group thereof) -that had its SourceGroup.stop_all method called.

    • -
    • source was playing a buffer that’s getting removed.

    • +
    • source is part of a SourceGroup (or sub-group thereof) +that had its SourceGroup.stop_all method called.

    • +
    • source was playing a buffer that’s getting removed.

    @@ -427,7 +427,7 @@ that had its SourceGroup.stop_all method called.

    source_stopped(source: palace.Source) → None

    Handle end-of-buffer/stream messages.

    This is called when the given source reaches the end of buffer -or stream, which is detected upon a call to Context.update.

    +or stream, which is detected upon a call to Context.update.

    @@ -440,33 +440,33 @@ or stream, which is detected upon a call to Context.update.

    palace.use_context(context: Optional[palace.Context], thread: Optional[bool] = None) → None

    Make the specified context current for OpenAL operations.

    This fails silently if the given context has been destroyed. -In case thread is not specified, fallback to preference made by -thread_local.

    -

    If thread is True, make the context current +In case thread is not specified, fallback to preference made by +thread_local.

    +

    If thread is True, make the context current for OpenAL operations on the calling thread only. This requires the non-device-specific as well as the context’s -device ALC_EXT_thread_local_context extension to be available.

    +device ALC_EXT_thread_local_context extension to be available.

    palace.current_context(thread: Optional[bool] = None) → Optional[palace.Context]

    Return the context that is currently used.

    -

    If thread is set to True, return the thread-specific context +

    If thread is set to True, return the thread-specific context used for OpenAL operations. This requires the non-device-specific -as well as the context’s device ALC_EXT_thread_local_context +as well as the context’s device ALC_EXT_thread_local_context extension to be available.

    -

    In case thread is not specified, fallback to preference made by -thread_local.

    +

    In case thread is not specified, fallback to preference made by +thread_local.

    palace.thread_local(state: bool) → Iterator[None]

    Return a context manager controlling preference of local thread.

    -

    Effectively, it sets fallback value for thread argument -for current_context and use_context.

    -

    Initially, globally current Context is preferred.

    +

    Effectively, it sets fallback value for thread argument +for current_context and use_context.

    +

    Initially, globally current Context is preferred.

    diff --git a/reference/decoder.html b/reference/decoder.html index 405a77b..d80fa6f 100644 --- a/reference/decoder.html +++ b/reference/decoder.html @@ -123,7 +123,7 @@
    Raises
    @@ -133,16 +133,16 @@ By default current_context() is used.

    See also

    -
    Buffer

    Preloaded PCM samples coming from a Decoder

    +
    Buffer

    Preloaded PCM samples coming from a Decoder

    Notes

    Due to implementation details, while this creates decoder objects from filenames using contexts, it is the superclass of the ABC -(abstract base class) BaseDecoder. Because of this, Decoder +(abstract base class) BaseDecoder. Because of this, Decoder may only initialize an internal one. To use registered factories, -please call the module-level decode function instead.

    +please call the module-level decode function instead.

    property channel_config
    @@ -160,7 +160,7 @@ please call the module-level decode function instead.

    property length

    Length of audio in sample frames, falling-back to 0.

    Notes

    -

    Zero-length decoders may not be used to load a Buffer.

    +

    Zero-length decoders may not be used to load a Buffer.

    @@ -168,7 +168,7 @@ please call the module-level decode function instead.

    property length_seconds

    Length of audio in seconds, falling-back to 0.0.

    Notes

    -

    Zero-length decoders may not be used to load a Buffer.

    +

    Zero-length decoders may not be used to load a Buffer.

    @@ -185,7 +185,7 @@ please call the module-level decode function instead.

    Notes

    -

    If start >= end, all available samples are included +

    If start >= end, all available samples are included in the loop.

    @@ -193,7 +193,7 @@ in the loop.

    play(chunk_len: int, queue_size: int, source: Optional[palace.Source])palace.Source

    Stream audio asynchronously from the decoder.

    -

    The decoder must NOT have its read or seek called +

    The decoder must NOT have its read or seek called from elsewhere while in use.

    Parameters
    @@ -204,7 +204,7 @@ larger values will handle more data with each chunk.

  • queue_size (int) – The number of chunks to keep queued during playback. Smaller values use less memory while larger values improve protection against underruns.

  • -
  • source (Optional[Source], optional) – The source object to play audio. If None is given, +

  • source (Optional[Source], optional) – The source object to play audio. If None is given, a new one will be created from the current context.

  • @@ -220,7 +220,7 @@ a new one will be created from the current context.

    read(count: int) → bytes
    -

    Decode and return count sample frames.

    +

    Decode and return count sample frames.

    If less than the requested count samples is returned, the end of the audio has been reached.

    @@ -241,7 +241,7 @@ the end of the audio has been reached.

    seek(pos: int) → bool
    -

    Seek to pos, specified in sample frames.

    +

    Seek to pos, specified in sample frames.

    Return if the seek was successful.

    @@ -284,8 +284,8 @@ lexicographical order, then fallback to the internal ones.

    class palace.BaseDecoder(*args, **kwargs)

    Audio decoder interface.

    Applications may derive from this, implement necessary methods, -and use it in places the API wants a BaseDecoder object.

    -

    Exceptions raised from BaseDecoder instances are ignored.

    +and use it in places the API wants a BaseDecoder object.

    +

    Exceptions raised from BaseDecoder instances are ignored.

    abstract property channel_config
    @@ -303,7 +303,7 @@ and use it in places the API wants a BaseDecoder object.

    abstract property length

    Length of audio in sample frames, falling-back to 0.

    Notes

    -

    Zero-length decoders may not be used to load a Buffer.

    +

    Zero-length decoders may not be used to load a Buffer.

    @@ -320,14 +320,14 @@ and use it in places the API wants a BaseDecoder object.

    Notes

    -

    If start >= end, all available samples are included +

    If start >= end, all available samples are included in the loop.

    abstract read(count: int) → bytes
    -

    Decode and return count sample frames.

    +

    Decode and return count sample frames.

    If less than the requested count samples is returned, the end of the audio has been reached.

    diff --git a/reference/device.html b/reference/device.html index 3cb86e4..88bf357 100644 --- a/reference/device.html +++ b/reference/device.html @@ -118,7 +118,7 @@
    class palace.Device

    Audio mix output, via either a system stream or a hardware port.

    -

    This can be used as a context manager that calls close upon +

    This can be used as a context manager that calls close upon completion of the block, even if an error occurs.

    Parameters
    @@ -176,14 +176,14 @@ extension to retrieve the audio device’s real clock.

    property current_hrtf

    Name of the HRTF currently being used by this device.

    -

    If HRTF is not currently enabled, this will be None.

    +

    If HRTF is not currently enabled, this will be None.

    property efx_version

    EFX version supported by this device.

    -

    If ALC_EXT_EFX extension is unsupported, this will be (0, 0).

    +

    If ALC_EXT_EFX extension is unsupported, this will be (0, 0).

    @@ -196,7 +196,7 @@ extension to retrieve the audio device’s real clock.

    property hrtf_enabled

    Whether HRTF is enabled on the device.

    -

    If ALC_SOFT_HRTF extension is unavailable, +

    If ALC_SOFT_HRTF extension is unavailable, this will return False although there could still be HRTF applied at a lower hardware level.

    @@ -206,8 +206,8 @@ HRTF applied at a lower hardware level.

    property hrtf_names

    List of available HRTF names.

    The order is retained from OpenAL, such that the index of -a given name is the ID to use with ALC_HRTF_ID_SOFT.

    -

    If ALC_SOFT_HRTF extension is unavailable, +a given name is the ID to use with ALC_HRTF_ID_SOFT.

    +

    If ALC_SOFT_HRTF extension is unavailable, this will be an empty list.

    @@ -215,7 +215,7 @@ this will be an empty list.

    property max_auxiliary_sends

    Maximum number of auxiliary source sends.

    -

    If ALC_EXT_EFX is unsupported, this will be 0.

    +

    If ALC_EXT_EFX is unsupported, this will be 0.

    @@ -229,8 +229,8 @@ this will be an empty list.

    pause_dsp() → None

    Pause device processing and stop contexts’ updates.

    Multiple calls are allowed but it is not reference counted, -so the device will resume after one resume_dsp call.

    -

    This requires ALC_SOFT_pause_device extension.

    +so the device will resume after one resume_dsp call.

    +

    This requires ALC_SOFT_pause_device extension.

    @@ -250,7 +250,7 @@ so the device will resume after one resume_dsp call.

    reset(attrs: Dict[int, int]) → None

    Reset the device, using the specified attributes.

    -

    If ALC_SOFT_HRTF extension is unavailable, +

    If ALC_SOFT_HRTF extension is unavailable, this will be a no-op.

    diff --git a/reference/effect.html b/reference/effect.html index c37c703..7b7dc87 100644 --- a/reference/effect.html +++ b/reference/effect.html @@ -124,12 +124,12 @@ which specifies the purpose and usage of each value.

    Instances of this class has no effect (pun intended).

    It takes the output mix of zero or more sources, applies DSP for the desired effect, then adds to the output mix.

    -

    This can be used as a context manager that calls destroy +

    This can be used as a context manager that calls destroy upon completion of the block, even if an error occurs.

    Parameters

    context (Optional[Context], optional) – The context from which the effect is to be created. -By default current_context() is used.

    +By default current_context() is used.

    Raises

    RuntimeError – If there is neither any context specified nor current.

    @@ -168,7 +168,7 @@ it will be removed first.

    property use_count

    Number of source sends the effect slot is used by.

    -

    This is equivalent to calling len(self.source_sends).

    +

    This is equivalent to calling len(self.source_sends).

    @@ -194,7 +194,7 @@ simultaneously, to create a thicker, more satisfying sound.

  • feedback (float) – From -1.0 to 1.0.

  • delay (float) – From 0.0 to 0.016.

  • context (Optional[Context], optional) – The context from which the effect is to be created. -By default current_context() is used.

  • +By default current_context() is used.

    Raises
    @@ -251,12 +251,12 @@ By default current_context() is used.

    Raises
    diff --git a/reference/file-io.html b/reference/file-io.html index 23c8c30..7b471e4 100644 --- a/reference/file-io.html +++ b/reference/file-io.html @@ -116,14 +116,14 @@
    palace.current_fileio() → Optional[Callable[[str], palace.FileIO]]

    Return the file I/O factory currently in used by audio decoders.

    -

    If the default is being used, return None.

    +

    If the default is being used, return None.

    palace.use_fileio(factory: Optional[Callable[[str], FileIO]], buffer_size: int = 8192) → None

    Set the file I/O factory instance to be used by audio decoders.

    -

    If factory=None is provided, revert to the default.

    +

    If factory=None is provided, revert to the default.

    @@ -131,9 +131,9 @@ class palace.FileIO(*args, **kwargs)

    File I/O protocol.

    This static duck type defines methods required to be used by -palace decoders. Despite its name, a FileIO is not necessarily +palace decoders. Despite its name, a FileIO is not necessarily created from a file, but any seekable finite input stream.

    -

    Many classes defined in the standard library module io +

    Many classes defined in the standard library module io are compatible with this protocol.

    Notes

    Since PEP 544 is only implemented in Python 3.8+, type checking diff --git a/reference/source.html b/reference/source.html index 3d40961..515e037 100644 --- a/reference/source.html +++ b/reference/source.html @@ -119,13 +119,13 @@ class palace.Source

    Sound source for playing audio.

    There is no practical limit to the number of sources one may create.

    -

    When the source is no longer needed, destroy must be called, +

    When the source is no longer needed, destroy must be called, unless the context manager is used, which guarantees the source’s destructioni upon completion of the block, even if an error occurs.

    Parameters

    context (Optional[Context], optional) – The context from which the source is to be created. -By default current_context() is used.

    +By default current_context() is used.

    Raises

    RuntimeError – If there is neither any context specified nor current.

    @@ -150,12 +150,12 @@ foggy air and lower values simulating dryer air; default to 0.

  • inner (float) – The area within which the listener will hear the source without extra attenuation, default to 360.

  • outer (float) – The area outside of which the listener will hear the source -attenuated according to outer_cone_gains, default to 360.

  • +attenuated according to outer_cone_gains, default to 360.

    Raises
    -

    ValueError – If set to a value where inner is greater than outer +

    ValueError – If set to a value where inner is greater than outer or either of them is outside of the [0, 360] interval.

    @@ -191,7 +191,7 @@ maximum value of a single-precision floating-point variable

    Raises
    -

    ValueError – If set to a value where refdist is greater than maxdist +

    ValueError – If set to a value where refdist is greater than maxdist or either of them is outside of the [0, FLT_MAX] interval.

    @@ -213,15 +213,15 @@ for the doppler calculation.

    fade_out_to_stop(gain: float, ms: int) → None
    -

    Fade the source to gain over ms milliseconds.

    -

    gain is in addition to the base gain and must be within -the [0, 1] interval. ms must be positive.

    +

    Fade the source to gain over ms milliseconds.

    +

    gain is in addition to the base gain and must be within +the [0, 1] interval. ms must be positive.

    The fading is logarithmic. As a result, the initial drop-off may happen faster than expected but the fading is more perceptually consistant over the given duration. It will take just as much time to go from -6 dB to -12 dB as it will to go from -40 dB to -46 dB, for example.

    -

    Fading is updated during calls to Context.update, +

    Fading is updated during calls to Context.update, which should be called regularly (30 to 50 times per second) for the fading to be smooth.

    @@ -259,9 +259,9 @@ for the fading to be smooth.

    Returns

    @@ -283,7 +283,7 @@ to the gain base and before the adjustments of the filter gain.

    Raises
    -

    ValueError – If set to a value where mingain is greater than maxgain +

    ValueError – If set to a value where mingain is greater than maxgain or either of them is outside of the [0, 1] interval.

    @@ -294,15 +294,15 @@ to the gain base and before the adjustments of the filter gain.

    group

    Parent group of this source.

    The parent group influences all sources that belong to it. -A source may only be the child of one SourceGroup at a time, +A source may only be the child of one SourceGroup at a time, although that source group may belong to another source group.

    -

    This is None when the source does not belong to any group. -On the other hand, setting it to None removes the source +

    This is None when the source does not belong to any group. +On the other hand, setting it to None removes the source from its current group.

    See also

    -
    SourceGroup

    A group of Source references

    +
    SourceGroup

    A group of Source references

    @@ -312,7 +312,7 @@ from its current group.

    property latency

    Source latency in nanoseconds.

    -

    If AL_SOFT_source_latency extension is unsupported, +

    If AL_SOFT_source_latency extension is unsupported, this will be 0.

    @@ -320,7 +320,7 @@ this will be 0.

    property latency_seconds

    Source latency in seconds.

    -

    If AL_SOFT_source_latency extension is unsupported, +

    If AL_SOFT_source_latency extension is unsupported, this will be 0.

    @@ -361,7 +361,7 @@ the decoder’s read position.

    Notes

    -

    Unlike AL_EXT_BFORMAT extension this property +

    Unlike AL_EXT_BFORMAT extension this property comes from, this also affects the facing direction.

    @@ -375,7 +375,7 @@ comes from, this also affects the facing direction.

  • gain (float) – Linear gain applying to all frequencies, default to 1.

  • gain_hf (float) – Linear gain applying extra attenuation to high frequencies creating a low-pass effect, default to 1. It has no effect -without the ALC_EXT_EFX extension.

  • +without the ALC_EXT_EFX extension.

    @@ -434,7 +434,7 @@ sources are played.

    radius

    Radius of the source, as if it is a sound-emitting sphere.

    -

    This has no effect without AL_EXT_SOURCE_RADIUS extension.

    +

    This has no effect without AL_EXT_SOURCE_RADIUS extension.

    Raises

    ValueError – If set to a negative value.

    @@ -446,8 +446,8 @@ sources are played.

    relative

    Whether the source’s 3D parameters are relative to listener.

    -

    The affected parameters includes position, velocity, -and orientation.

    +

    The affected parameters includes position, velocity, +and orientation.

    @@ -455,8 +455,8 @@ and orientation.

    resampler_index

    Index of the resampler to use for this source.

    The index must be nonnegative, from the resamplers returned -by Context.get_available_resamplers, and has no effect -without the AL_SOFT_source_resampler extension.

    +by Context.get_available_resamplers, and has no effect +without the AL_SOFT_source_resampler extension.

    @@ -493,9 +493,9 @@ room decay based on the reverb decay time and distance.

    property sends

    Collection of send path signals.

    Send paths can be retrieved using a nonnegative index, which has -no effect if not less than the device’s max_auxiliary_sends.

    +no effect if not less than the device’s max_auxiliary_sends.

    Each send path has two write-only descriptors, -effect and filter.

    +effect and filter.

    Examples

    >>> source.sends[0].effect = effect
     >>> source.sends[1].filter = 1, 0.6, 0.9
    @@ -507,12 +507,12 @@ no effect if not less than the device’s max_auxiliary_sends.

    spatialize

    Whether to enable 3D spatialization.

    -

    Either True (the source always has 3D spatialization -features), False (never has 3D spatialization features), -or None (spatialization is enabled based on playing +

    Either True (the source always has 3D spatialization +features), False (never has 3D spatialization features), +or None (spatialization is enabled based on playing a mono sound or not, default).

    This has no effect without -AL_SOFT_source_spatialize extension.

    +AL_SOFT_source_spatialize extension.

    @@ -522,7 +522,7 @@ a mono sound or not, default).

    The angles go counter-clockwise, with 0 being in front and positive values going left.

    This is only used for stereo playback and has no effect -without AL_EXT_STEREO_ANGLES extension.

    +without AL_EXT_STEREO_ANGLES extension.

    @@ -548,15 +548,15 @@ by the doppler effect.

    class palace.SourceGroup
    -

    A group of Source references.

    -

    For instance, setting SourceGroup.gain to 0.5 will halve the gain +

    A group of Source references.

    +

    For instance, setting SourceGroup.gain to 0.5 will halve the gain of all sources in the group.

    -

    This can be used as a context manager that calls destroy upon +

    This can be used as a context manager that calls destroy upon completion of the block, even if an error occurs.

    Parameters

    context (Optional[Context], optional) – The context from which the source group is to be created. -By default current_context() is used.

    +By default current_context() is used.

    Raises

    RuntimeError – If there is neither any context specified nor current.