Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

70.3 KB
Raw Blame
// Generated by tools/gen.sh from Blender's own API (tools/dump.py). Don't edit: regenerate.
import type * as H from "../../types";
import type * as M from "../../mathutils";
import type * as R from "../rna";
import type * as E from "../enums";
import type * as P from "../py";

/** Audaspace (pronounced "outer space") is a high level audio library. */
export interface Api {
  /** = 3 */
  readonly AP_LOCATION: H.Ref<number>;
  /** = 4 */
  readonly AP_ORIENTATION: H.Ref<number>;
  /** = 1 */
  readonly AP_PANNING: H.Ref<number>;
  /** = 2 */
  readonly AP_PITCH: H.Ref<number>;
  /** = 6 */
  readonly AP_PITCH_SCALE: H.Ref<number>;
  /** = 5 */
  readonly AP_TIME_STRETCH: H.Ref<number>;
  /** = 0 */
  readonly AP_VOLUME: H.Ref<number>;
  /** An AnimateableProperty object stores an array of float values for animating sound properties (e.g. pan, volume, pitch-scale). */
  readonly AnimateableProperty: AnimateablePropertyClass;
  /** = 0 */
  readonly CHANNELS_INVALID: H.Ref<number>;
  /** = 1 */
  readonly CHANNELS_MONO: H.Ref<number>;
  /** = 2 */
  readonly CHANNELS_STEREO: H.Ref<number>;
  /** = 3 */
  readonly CHANNELS_STEREO_LFE: H.Ref<number>;
  /** = 4 */
  readonly CHANNELS_SURROUND4: H.Ref<number>;
  /** = 5 */
  readonly CHANNELS_SURROUND5: H.Ref<number>;
  /** = 6 */
  readonly CHANNELS_SURROUND51: H.Ref<number>;
  /** = 7 */
  readonly CHANNELS_SURROUND61: H.Ref<number>;
  /** = 8 */
  readonly CHANNELS_SURROUND71: H.Ref<number>;
  /** = 1 */
  readonly CODEC_AAC: H.Ref<number>;
  /** = 2 */
  readonly CODEC_AC3: H.Ref<number>;
  /** = 3 */
  readonly CODEC_FLAC: H.Ref<number>;
  /** = 0 */
  readonly CODEC_INVALID: H.Ref<number>;
  /** = 4 */
  readonly CODEC_MP2: H.Ref<number>;
  /** = 5 */
  readonly CODEC_MP3: H.Ref<number>;
  /** = 8 */
  readonly CODEC_OPUS: H.Ref<number>;
  /** = 6 */
  readonly CODEC_PCM: H.Ref<number>;
  /** = 7 */
  readonly CODEC_VORBIS: H.Ref<number>;
  /** = 8 */
  readonly CONTAINER_AAC: H.Ref<number>;
  /** = 1 */
  readonly CONTAINER_AC3: H.Ref<number>;
  /** = 2 */
  readonly CONTAINER_FLAC: H.Ref<number>;
  /** = 0 */
  readonly CONTAINER_INVALID: H.Ref<number>;
  /** = 3 */
  readonly CONTAINER_MATROSKA: H.Ref<number>;
  /** = 4 */
  readonly CONTAINER_MP2: H.Ref<number>;
  /** = 5 */
  readonly CONTAINER_MP3: H.Ref<number>;
  /** = 6 */
  readonly CONTAINER_OGG: H.Ref<number>;
  /** = 7 */
  readonly CONTAINER_WAV: H.Ref<number>;
  /** = 5 */
  readonly DISTANCE_MODEL_EXPONENT: H.Ref<number>;
  /** = 6 */
  readonly DISTANCE_MODEL_EXPONENT_CLAMPED: H.Ref<number>;
  /** = 0 */
  readonly DISTANCE_MODEL_INVALID: H.Ref<number>;
  /** = 1 */
  readonly DISTANCE_MODEL_INVERSE: H.Ref<number>;
  /** = 2 */
  readonly DISTANCE_MODEL_INVERSE_CLAMPED: H.Ref<number>;
  /** = 3 */
  readonly DISTANCE_MODEL_LINEAR: H.Ref<number>;
  /** = 4 */
  readonly DISTANCE_MODEL_LINEAR_CLAMPED: H.Ref<number>;
  /** Device objects represent an audio output backend like OpenAL or SDL, but might also represent a file output or RAM buffer output. */
  readonly Device: DeviceClass;
  /** The DynamicMusic object allows to play music depending on a current scene, scene changes are managed by the class, with the possibility of custom transitions. */
  readonly DynamicMusic: DynamicMusicClass;
  /** = 36 */
  readonly FORMAT_FLOAT32: H.Ref<number>;
  /** = 40 */
  readonly FORMAT_FLOAT64: H.Ref<number>;
  /** = 0 */
  readonly FORMAT_INVALID: H.Ref<number>;
  /** = 18 */
  readonly FORMAT_S16: H.Ref<number>;
  /** = 19 */
  readonly FORMAT_S24: H.Ref<number>;
  /** = 20 */
  readonly FORMAT_S32: H.Ref<number>;
  /** = 1 */
  readonly FORMAT_U8: H.Ref<number>;
  /** An HRTF object represents a set of head related transfer functions as impulse responses. It's used for binaural sound. */
  readonly HRTF: HRTFClass;
  /** Handle objects are playback handles that can be used to control playback of a sound. If a sound is played back multiple times then there are as many handles. */
  readonly Handle: HandleClass;
  /** An ImpulseResponse object represents a filter with which to convolve a sound. */
  readonly ImpulseResponse: ImpulseResponseClass;
  /** A PlaybackManager object allows to easily control groups of sounds organized in categories. */
  readonly PlaybackManager: PlaybackManagerClass;
  /** = 11025 */
  readonly RATE_11025: H.Ref<number>;
  /** = 16000 */
  readonly RATE_16000: H.Ref<number>;
  /** = 192000 */
  readonly RATE_192000: H.Ref<number>;
  /** = 22050 */
  readonly RATE_22050: H.Ref<number>;
  /** = 32000 */
  readonly RATE_32000: H.Ref<number>;
  /** = 44100 */
  readonly RATE_44100: H.Ref<number>;
  /** = 48000 */
  readonly RATE_48000: H.Ref<number>;
  /** = 8000 */
  readonly RATE_8000: H.Ref<number>;
  /** = 88200 */
  readonly RATE_88200: H.Ref<number>;
  /** = 96000 */
  readonly RATE_96000: H.Ref<number>;
  /** = 0 */
  readonly RATE_INVALID: H.Ref<number>;
  /** = 0 */
  readonly STATUS_INVALID: H.Ref<number>;
  /** = 2 */
  readonly STATUS_PAUSED: H.Ref<number>;
  /** = 1 */
  readonly STATUS_PLAYING: H.Ref<number>;
  /** = 3 */
  readonly STATUS_STOPPED: H.Ref<number>;
  /** = 2 */
  readonly STRETCHER_QUALITY_CONSISTENT: H.Ref<number>;
  /** = 1 */
  readonly STRETCHER_QUALITY_FAST: H.Ref<number>;
  /** = 0 */
  readonly STRETCHER_QUALITY_HIGH: H.Ref<number>;
  /** This sound represents sequenced entries to play a sound sequence. */
  readonly Sequence: SequenceClass;
  /** SequenceEntry objects represent an entry of a sequenced sound. */
  readonly SequenceEntry: SequenceEntryClass;
  /** Sound objects are immutable and represent a sound that can be played simultaneously multiple times. They are called factories because they create reader objects internally that are used for playback. */
  readonly Sound: SoundClass;
  /** The source object represents the source position of a binaural sound. */
  readonly Source: SourceClass;
  /** A ThreadPool is used to parallelize convolution efficiently. */
  readonly ThreadPool: ThreadPoolClass;
  readonly error: errorClass;
}

/**
 * An AnimateableProperty object stores an array of float values for animating sound properties (e.g. pan, volume, pitch-scale).
 *
 * aud.AnimateableProperty
 */
export interface AnimateableProperty {
  /**
   * Reads the properties value at the given position.
   * @returns A numpy array of values representing the properties value.
   * @param position The position in the animation in frames.
   */
  read(position: H.In<number>): any;
  /**
   * Reads the properties value at the given position.
   * @returns A numpy array of values representing the properties value.
   * @param position The position in the animation in frames.
   */
  read(kw: {
    /** The position in the animation in frames. */
    position: H.In<number>;
  }): any;
  /**
   * Reads the properties value at the given position, assuming there is exactly one value.
   * @returns The value at that position.
   * @param position The position in the animation in frames.
   */
  readSingle(position: H.In<number>): H.Ref<number>;
  /**
   * Reads the properties value at the given position, assuming there is exactly one value.
   * @returns The value at that position.
   * @param position The position in the animation in frames.
   */
  readSingle(kw: {
    /** The position in the animation in frames. */
    position: H.In<number>;
  }): H.Ref<number>;
  /**
   * Writes the properties value.
   *
   * If `position` is also given, the property is marked animated and
   * the values are written starting at `position`.
   */
  write(): H.Ref<void>;
  /**
   * Fills the properties frame range with a constant value and marks it animated.
   * @param data numpy array of float values representing the constant value.
   * @param position_start The start position in frames.
   * @param position_end The end position in frames.
   */
  writeConstantRange(data: any, position_start: H.In<number>, position_end: H.In<number>): H.Ref<void>;
  /**
   * Fills the properties frame range with a constant value and marks it animated.
   * @param data numpy array of float values representing the constant value.
   * @param position_start The start position in frames.
   * @param position_end The end position in frames.
   */
  writeConstantRange(kw: {
    /** numpy array of float values representing the constant value. */
    data: any;
    /** The start position in frames. */
    position_start: H.In<number>;
    /** The end position in frames. */
    position_end: H.In<number>;
  }): H.Ref<void>;
  /** The count of floats for a property. */
  get count(): H.Ref<number>;
  set count(v: H.In<number>);
  /** Whether the property is animated. */
  get animated(): H.Ref<boolean>;
  set animated(v: H.In<boolean>);
}
/** The class aud.AnimateableProperty: called, a new one. */
export interface AnimateablePropertyClass {
  /**
   * An AnimateableProperty object stores an array of float values for animating sound properties (e.g. pan, volume, pitch-scale).
   * @param count The number of float values to store per frame.
   * @param value The initial value for all elements.
   */
  (count: H.In<number>, value?: H.In<number>): H.Own<AnimateableProperty>;
}

/**
 * Device objects represent an audio output backend like OpenAL or SDL, but might also represent a file output or RAM buffer output.
 *
 * aud.Device
 */
export interface Device {
  /**
   * Locks the device so that it's guaranteed, that no samples are
   * read from the streams until :meth:`unlock` is called.
   * This is useful if you want to do start/stop/pause/resume some
   * sounds at the same time.
   *
   * .. note::
   *
   *    The device has to be unlocked as often as locked to be
   *    able to continue playback.
   *
   * .. warning::
   *
   *    Make sure the time between locking and unlocking is
   *    as short as possible to avoid clicks.
   */
  lock(...args: any[]): H.Ref<void>;
  /**
   * Plays a sound.
   * @returns The playback handle with which playback can be
   * controlled with.
   * @param sound The sound to play.
   * @param keep See :attr:`Handle.keep`.
   */
  play(sound: R.Sound, keep?: H.In<boolean>): H.Ptr<P.aud.Handle>;
  /**
   * Plays a sound.
   * @returns The playback handle with which playback can be
   * controlled with.
   * @param sound The sound to play.
   * @param keep See :attr:`Handle.keep`.
   */
  play(sound: R.Sound, kw: {
    /** See :attr:`Handle.keep`. */
    keep?: H.In<boolean>;
  }): H.Ptr<P.aud.Handle>;
  /**
   * Plays a sound.
   * @returns The playback handle with which playback can be
   * controlled with.
   * @param sound The sound to play.
   * @param keep See :attr:`Handle.keep`.
   */
  play(kw: {
    /** The sound to play. */
    sound: R.Sound;
    /** See :attr:`Handle.keep`. */
    keep?: H.In<boolean>;
  }): H.Ptr<P.aud.Handle>;
  /** Stops all playing and paused sounds. */
  stopAll(...args: any[]): H.Ref<void>;
  /**
   * Unlocks the device after a lock call, see :meth:`lock` for
   * details.
   */
  unlock(...args: any[]): H.Ref<void>;
  /** The channel count of the device. */
  get channels(): H.Ref<number>;
  set channels(v: H.In<number>);
  /**
   * The distance model of the device.
   *
   * .. seealso:: `OpenAL Documentation <https://www.openal.org/documentation/>`__
   */
  get distance_model(): H.Ref<number>;
  set distance_model(v: H.In<number>);
  /**
   * The doppler factor of the device.
   * This factor is a scaling factor for the velocity vectors in doppler calculation. So a value bigger than 1 will exaggerate the effect as it raises the velocity.
   */
  get doppler_factor(): H.Ref<number>;
  set doppler_factor(v: H.In<number>);
  /** The native sample format of the device. */
  get format(): H.Ref<number>;
  set format(v: H.In<number>);
  /** The listeners's location in 3D space, a 3D tuple of floats. */
  get listener_location(): H.Ref<[number, number, number]>;
  set listener_location(v: H.In<readonly [number, number, number]>);
  /** The listener's orientation in 3D space as quaternion, a 4 float tuple. */
  get listener_orientation(): H.Ref<[number, number, number, number]>;
  set listener_orientation(v: H.In<readonly [number, number, number, number]>);
  /** The listener's velocity in 3D space, a 3D tuple of floats. */
  get listener_velocity(): H.Ref<[number, number, number]>;
  set listener_velocity(v: H.In<readonly [number, number, number]>);
  /** The sampling rate of the device in Hz. */
  get rate(): H.Ref<number>;
  set rate(v: H.In<number>);
  /**
   * The speed of sound of the device.
   * The speed of sound in air is typically 343.3 m/s.
   */
  get speed_of_sound(): H.Ref<number>;
  set speed_of_sound(v: H.In<number>);
  /** The overall volume of the device. */
  get volume(): H.Ref<number>;
  set volume(v: H.In<number>);
}
/** The class aud.Device: called, a new one. */
export interface DeviceClass {
  /**
   * Device objects represent an audio output backend like OpenAL or SDL, but might also represent a file output or RAM buffer output.
   * @param type The device type. An empty string means the default device.
   * @param rate The sample rate in Hz.
   * @param channels The number of channels.
   * @param format The sample format.
   * @param buffer_size The size of the audio buffer in samples.
   * @param name The name of the device.
   */
  (type?: H.In<string>, rate?: H.In<number>, channels?: H.In<number>, format?: H.In<number>, buffer_size?: H.In<number>, name?: H.In<string>): H.Own<Device>;
  /**
   * Device objects represent an audio output backend like OpenAL or SDL, but might also represent a file output or RAM buffer output.
   * @param type The device type. An empty string means the default device.
   * @param rate The sample rate in Hz.
   * @param channels The number of channels.
   * @param format The sample format.
   * @param buffer_size The size of the audio buffer in samples.
   * @param name The name of the device.
   */
  (kw: {
    /** The device type. An empty string means the default device. */
    type?: H.In<string>;
    /** The sample rate in Hz. */
    rate?: H.In<number>;
    /** The number of channels. */
    channels?: H.In<number>;
    /** The sample format. */
    format?: H.In<number>;
    /** The size of the audio buffer in samples. */
    buffer_size?: H.In<number>;
    /** The name of the device. */
    name?: H.In<string>;
  }): H.Own<Device>;
}

/**
 * The DynamicMusic object allows to play music depending on a current scene, scene changes are managed by the class, with the possibility of custom transitions.
 * The default transition is a crossfade effect, and the default scene is silent and has id 0.
 *
 * aud.DynamicMusic
 */
export interface DynamicMusic {
  /**
   * Adds a new scene.
   * @returns The new scene id.
   * @param scene The scene sound.
   */
  addScene(scene: R.Sound): H.Ref<number>;
  /**
   * Adds a new scene.
   * @returns The new scene id.
   * @param scene The scene sound.
   */
  addScene(kw: {
    /** The scene sound. */
    scene: R.Sound;
  }): H.Ref<number>;
  /**
   * Adds a new scene.
   * @returns false if the ini or end scenes don't exist, true otherwise.
   * @param ini the initial scene foor the transition.
   * @param end The final scene for the transition.
   * @param transition The transition sound.
   */
  addTransition(ini: H.In<number>, end: H.In<number>, transition: R.Sound): H.Ref<boolean>;
  /**
   * Adds a new scene.
   * @returns false if the ini or end scenes don't exist, true otherwise.
   * @param ini the initial scene foor the transition.
   * @param end The final scene for the transition.
   * @param transition The transition sound.
   */
  addTransition(kw: {
    /** the initial scene foor the transition. */
    ini: H.In<number>;
    /** The final scene for the transition. */
    end: H.In<number>;
    /** The transition sound. */
    transition: R.Sound;
  }): H.Ref<boolean>;
  /**
   * Resumes playback of the scene.
   * @returns Whether the action succeeded.
   */
  resume(...args: any[]): H.Ref<boolean>;
  /**
   * Pauses playback of the scene.
   * @returns Whether the action succeeded.
   */
  pause(...args: any[]): H.Ref<boolean>;
  /**
   * Stops playback of the scene.
   * @returns Whether the action succeeded.
   */
  stop(...args: any[]): H.Ref<boolean>;
  /** Whether the scene is playing, paused or stopped (=invalid). */
  get status(): H.Ref<boolean>;
  set status(v: H.In<boolean>);
  /** The playback position of the scene in seconds. */
  get position(): H.Ref<number>;
  set position(v: H.In<number>);
  /** The length in seconds of the crossfade transition */
  get fadeTime(): H.Ref<number>;
  set fadeTime(v: H.In<number>);
  /** The current scene */
  get scene(): H.Ref<number>;
  set scene(v: H.In<number>);
  /** The volume of the scene. */
  get volume(): H.Ref<number>;
  set volume(v: H.In<number>);
}
/** The class aud.DynamicMusic: called, a new one. */
export interface DynamicMusicClass {
  /**
   * The DynamicMusic object allows to play music depending on a current scene, scene changes are managed by the class, with the possibility of custom transitions.
   * The default transition is a crossfade effect, and the default scene is silent and has id 0.
   * @param device The device that will be used to play sounds.
   */
  (device: P.aud.Device): H.Own<DynamicMusic>;
}

/**
 * An HRTF object represents a set of head related transfer functions as impulse responses. It's used for binaural sound.
 *
 * aud.HRTF
 */
export interface HRTF {
  /**
   * Adds a new hrtf to the HRTF object
   * @returns Whether the action succeeded.
   * @param sound The sound that contains the hrtf.
   * @param azimuth The azimuth angle of the hrtf.
   * @param elevation The elevation angle of the hrtf.
   */
  addImpulseResponseFromSound(sound: R.Sound, azimuth: H.In<number>, elevation: H.In<number>): H.Ref<boolean>;
  /**
   * Adds a new hrtf to the HRTF object
   * @returns Whether the action succeeded.
   * @param sound The sound that contains the hrtf.
   * @param azimuth The azimuth angle of the hrtf.
   * @param elevation The elevation angle of the hrtf.
   */
  addImpulseResponseFromSound(kw: {
    /** The sound that contains the hrtf. */
    sound: R.Sound;
    /** The azimuth angle of the hrtf. */
    azimuth: H.In<number>;
    /** The elevation angle of the hrtf. */
    elevation: H.In<number>;
  }): H.Ref<boolean>;
}
/** The class aud.HRTF: called, a new one. */
export interface HRTFClass {
  /** An HRTF object represents a set of head related transfer functions as impulse responses. It's used for binaural sound. */
  (...args: any[]): H.Own<HRTF>;
  /**
   * Loads all HRTFs from a directory.
   * @returns The loaded :class:`HRTF` object.
   * @param extension The file extension of the hrtfs.
   * @param directory The path to where the HRTF files are located.
   */
  loadLeftHrtfSet(extension: H.In<string>, directory: any): H.Ptr<P.aud.HRTF>;
  /**
   * Loads all HRTFs from a directory.
   * @returns The loaded :class:`HRTF` object.
   * @param extension The file extension of the hrtfs.
   * @param directory The path to where the HRTF files are located.
   */
  loadLeftHrtfSet(kw: {
    /** The file extension of the hrtfs. */
    extension: H.In<string>;
    /** The path to where the HRTF files are located. */
    directory: any;
  }): H.Ptr<P.aud.HRTF>;
  /**
   * Loads all HRTFs from a directory.
   * @returns The loaded :class:`HRTF` object.
   * @param extension The file extension of the hrtfs.
   * @param directory The path to where the HRTF files are located.
   */
  loadRightHrtfSet(extension: H.In<string>, directory: any): H.Ptr<P.aud.HRTF>;
  /**
   * Loads all HRTFs from a directory.
   * @returns The loaded :class:`HRTF` object.
   * @param extension The file extension of the hrtfs.
   * @param directory The path to where the HRTF files are located.
   */
  loadRightHrtfSet(kw: {
    /** The file extension of the hrtfs. */
    extension: H.In<string>;
    /** The path to where the HRTF files are located. */
    directory: any;
  }): H.Ptr<P.aud.HRTF>;
}

/**
 * Handle objects are playback handles that can be used to control playback of a sound. If a sound is played back multiple times then there are as many handles.
 *
 * aud.Handle
 */
export interface Handle {
  /**
   * Pauses playback.
   * @returns Whether the action succeeded.
   */
  pause(...args: any[]): H.Ref<boolean>;
  /**
   * Resumes playback.
   * @returns Whether the action succeeded.
   */
  resume(...args: any[]): H.Ref<boolean>;
  /**
   * Stops playback.
   *
   * .. note:: This makes the handle invalid.
   * @returns Whether the action succeeded.
   */
  stop(...args: any[]): H.Ref<boolean>;
  /**
   * This factor is used for distance based attenuation of the source.
   *
   * .. seealso:: :attr:`Device.distance_model`
   */
  get attenuation(): H.Ref<number>;
  set attenuation(v: H.In<number>);
  /**
   * The opening angle of the inner cone of the source. If the cone values of a source are set there are two (audible) cones with the apex at the :attr:`location` of the source and with infinite height, heading in the direction of the source's :attr:`orientation`.
   * In the inner cone the volume is normal. Outside the outer cone the volume will be :attr:`cone_volume_outer` and in the area between the volume will be interpolated linearly.
   */
  get cone_angle_inner(): H.Ref<number>;
  set cone_angle_inner(v: H.In<number>);
  /**
   * The opening angle of the outer cone of the source.
   *
   * .. seealso:: :attr:`cone_angle_inner`
   */
  get cone_angle_outer(): H.Ref<number>;
  set cone_angle_outer(v: H.In<number>);
  /**
   * The volume outside the outer cone of the source.
   *
   * .. seealso:: :attr:`cone_angle_inner`
   */
  get cone_volume_outer(): H.Ref<number>;
  set cone_volume_outer(v: H.In<number>);
  /**
   * The maximum distance of the source.
   * If the listener is further away the source volume will be 0.
   *
   * .. seealso:: :attr:`Device.distance_model`
   */
  get distance_maximum(): H.Ref<number>;
  set distance_maximum(v: H.In<number>);
  /**
   * The reference distance of the source.
   * At this distance the volume will be exactly :attr:`volume`.
   *
   * .. seealso:: :attr:`Device.distance_model`
   */
  get distance_reference(): H.Ref<number>;
  set distance_reference(v: H.In<number>);
  /**
   * Whether the sound should be kept paused in the device when its end is reached.
   * This can be used to seek the sound to some position and start playback again.
   *
   * .. warning:: If this is set to true and you forget stopping this equals a memory leak as the handle exists until the device is destroyed.
   */
  get keep(): H.Ref<boolean>;
  set keep(v: H.In<boolean>);
  /** The source's location in 3D space, a 3D tuple of floats. */
  get location(): H.Ref<[number, number, number]>;
  set location(v: H.In<readonly [number, number, number]>);
  /** The (remaining) loop count of the sound. A negative value indicates infinity. */
  get loop_count(): H.Ref<number>;
  set loop_count(v: H.In<number>);
  /** The source's orientation in 3D space as quaternion, a 4 float tuple. */
  get orientation(): H.Ref<[number, number, number, number]>;
  set orientation(v: H.In<readonly [number, number, number, number]>);
  /** The pitch of the sound. */
  get pitch(): H.Ref<number>;
  set pitch(v: H.In<number>);
  /** The playback position of the sound in seconds. */
  get position(): H.Ref<number>;
  set position(v: H.In<number>);
  /** Whether the source's location, velocity and orientation is relative or absolute to the listener. */
  get relative(): H.Ref<boolean>;
  set relative(v: H.In<boolean>);
  /** Whether the sound is playing, paused or stopped (=invalid). */
  get status(): H.Ref<boolean>;
  set status(v: H.In<boolean>);
  /** The source's velocity in 3D space, a 3D tuple of floats. */
  get velocity(): H.Ref<[number, number, number]>;
  set velocity(v: H.In<readonly [number, number, number]>);
  /** The volume of the sound. */
  get volume(): H.Ref<number>;
  set volume(v: H.In<number>);
  /**
   * The maximum volume of the source.
   *
   * .. seealso:: :attr:`Device.distance_model`
   */
  get volume_maximum(): H.Ref<number>;
  set volume_maximum(v: H.In<number>);
  /**
   * The minimum volume of the source.
   *
   * .. seealso:: :attr:`Device.distance_model`
   */
  get volume_minimum(): H.Ref<number>;
  set volume_minimum(v: H.In<number>);
}
/** The class aud.Handle: called, a new one. */
export interface HandleClass {
  /** Handle objects are playback handles that can be used to control playback of a sound. If a sound is played back multiple times then there are as many handles. */
  (): H.Own<Handle>;
}

/**
 * An ImpulseResponse object represents a filter with which to convolve a sound.
 *
 * aud.ImpulseResponse
 */
export interface ImpulseResponse {

}
/** The class aud.ImpulseResponse: called, a new one. */
export interface ImpulseResponseClass {
  /**
   * An ImpulseResponse object represents a filter with which to convolve a sound.
   * @param sound The sound to use as the impulse response.
   */
  (sound: R.Sound): H.Own<ImpulseResponse>;
}

/**
 * A PlaybackManager object allows to easily control groups of sounds organized in categories.
 *
 * aud.PlaybackManager
 */
export interface PlaybackManager {
  /**
   * Plays a sound through the playback manager and assigns it to a category.
   * @returns The playback handle with which playback can be controlled with.
   * @param sound The sound to play.
   * @param catKey the key of the category in which the sound will be added, if it doesn't exist, a new one will be created.
   */
  play(sound: R.Sound, catKey: H.In<number>): H.Ptr<P.aud.Handle>;
  /**
   * Plays a sound through the playback manager and assigns it to a category.
   * @returns The playback handle with which playback can be controlled with.
   * @param sound The sound to play.
   * @param catKey the key of the category in which the sound will be added, if it doesn't exist, a new one will be created.
   */
  play(kw: {
    /** The sound to play. */
    sound: R.Sound;
    /**
     * the key of the category in which the sound will be added,
     * if it doesn't exist, a new one will be created.
     */
    catKey: H.In<number>;
  }): H.Ptr<P.aud.Handle>;
  /**
   * Resumes playback of the catgory.
   * @returns Whether the action succeeded.
   * @param catKey the key of the category.
   */
  resume(catKey: H.In<number>): H.Ref<boolean>;
  /**
   * Resumes playback of the catgory.
   * @returns Whether the action succeeded.
   * @param catKey the key of the category.
   */
  resume(kw: {
    /** the key of the category. */
    catKey: H.In<number>;
  }): H.Ref<boolean>;
  /**
   * Pauses playback of the category.
   * @returns Whether the action succeeded.
   * @param catKey the key of the category.
   */
  pause(catKey: H.In<number>): H.Ref<boolean>;
  /**
   * Pauses playback of the category.
   * @returns Whether the action succeeded.
   * @param catKey the key of the category.
   */
  pause(kw: {
    /** the key of the category. */
    catKey: H.In<number>;
  }): H.Ref<boolean>;
  /**
   * Stops playback of the category.
   * @returns Whether the action succeeded.
   * @param catKey the key of the category.
   */
  stop(catKey: H.In<number>): H.Ref<boolean>;
  /**
   * Stops playback of the category.
   * @returns Whether the action succeeded.
   * @param catKey the key of the category.
   */
  stop(kw: {
    /** the key of the category. */
    catKey: H.In<number>;
  }): H.Ref<boolean>;
  /**
   * Adds a category with a custom volume.
   * @returns The key of the new category.
   * @param volume The volume for ther new category.
   */
  addCategory(volume: H.In<number>): H.Ref<number>;
  /**
   * Adds a category with a custom volume.
   * @returns The key of the new category.
   * @param volume The volume for ther new category.
   */
  addCategory(kw: {
    /** The volume for ther new category. */
    volume: H.In<number>;
  }): H.Ref<number>;
  /**
   * Retrieves the volume of a category.
   * @returns The volume of the category.
   * @param catKey the key of the category.
   */
  getVolume(catKey: H.In<number>): H.Ref<number>;
  /**
   * Retrieves the volume of a category.
   * @returns The volume of the category.
   * @param catKey the key of the category.
   */
  getVolume(kw: {
    /** the key of the category. */
    catKey: H.In<number>;
  }): H.Ref<number>;
  /**
   * Changes the volume of a category.
   * @returns Whether the action succeeded.
   * @param volume the new volume value.
   * @param catKey the key of the category.
   */
  setVolume(volume: H.In<number>, catKey: H.In<number>): H.Ref<number>;
  /**
   * Changes the volume of a category.
   * @returns Whether the action succeeded.
   * @param volume the new volume value.
   * @param catKey the key of the category.
   */
  setVolume(kw: {
    /** the new volume value. */
    volume: H.In<number>;
    /** the key of the category. */
    catKey: H.In<number>;
  }): H.Ref<number>;
  /** Cleans all the invalid and finished sound from the playback manager. */
  clean(...args: any[]): H.Ref<void>;
}
/** The class aud.PlaybackManager: called, a new one. */
export interface PlaybackManagerClass {
  /**
   * A PlaybackManager object allows to easily control groups of sounds organized in categories.
   * @param device The device that will be used to play sounds.
   */
  (device: P.aud.Device): H.Own<PlaybackManager>;
}

/**
 * This sound represents sequenced entries to play a sound sequence.
 *
 * aud.Sequence
 */
export interface Sequence extends P.aud.Sound {
  /**
   * Adds a new entry to the sequence.
   * @returns The entry added.
   */
  add(...args: any[]): H.Ptr<P.aud.SequenceEntry>;
  /** Removes an entry from the sequence. */
  remove(...args: any[]): H.Ref<void>;
  /** Writes animation data to a sequence. */
  setAnimationData(...args: any[]): H.Ref<void>;
  /** The channel count of the sequence. */
  get channels(): H.Ref<number>;
  set channels(v: H.In<number>);
  /**
   * The distance model of the sequence.
   *
   * .. seealso:: `OpenAL Documentation <https://www.openal.org/documentation/>`__
   */
  get distance_model(): H.Ref<number>;
  set distance_model(v: H.In<number>);
  /**
   * The doppler factor of the sequence.
   * This factor is a scaling factor for the velocity vectors in doppler calculation. So a value bigger than 1 will exaggerate the effect as it raises the velocity.
   */
  get doppler_factor(): H.Ref<number>;
  set doppler_factor(v: H.In<number>);
  /** The listeners's location in 3D space, a 3D tuple of floats. */
  get fps(): H.Ref<number>;
  set fps(v: H.In<number>);
  /** Whether the whole sequence is muted. */
  get muted(): H.Ref<boolean>;
  set muted(v: H.In<boolean>);
  /** The sampling rate of the sequence in Hz. */
  get rate(): H.Ref<number>;
  set rate(v: H.In<number>);
  /**
   * The speed of sound of the sequence.
   * The speed of sound in air is typically 343.3 m/s.
   */
  get speed_of_sound(): H.Ref<number>;
  set speed_of_sound(v: H.In<number>);
}
/** The class aud.Sequence: called, a new one. */
export interface SequenceClass {
  /**
   * This sound represents sequenced entries to play a sound sequence.
   * @param channels The number of channels.
   * @param rate The sample rate in Hz.
   * @param fps The frames per second of the sequence.
   * @param muted Whether the sequence is muted.
   */
  (channels?: H.In<number>, rate?: H.In<number>, fps?: H.In<number>, muted?: H.In<boolean>): H.Own<Sequence>;
  /**
   * This sound represents sequenced entries to play a sound sequence.
   * @param channels The number of channels.
   * @param rate The sample rate in Hz.
   * @param fps The frames per second of the sequence.
   * @param muted Whether the sequence is muted.
   */
  (kw: {
    /** The number of channels. */
    channels?: H.In<number>;
    /** The sample rate in Hz. */
    rate?: H.In<number>;
    /** The frames per second of the sequence. */
    fps?: H.In<number>;
    /** Whether the sequence is muted. */
    muted?: H.In<boolean>;
  }): H.Own<Sequence>;
}

/**
 * SequenceEntry objects represent an entry of a sequenced sound.
 *
 * aud.SequenceEntry
 */
export interface SequenceEntry {
  /** Moves the entry. */
  move(...args: any[]): H.Ref<void>;
  /** Writes animation data to a sequenced entry. */
  setAnimationData(...args: any[]): H.Ref<void>;
  /**
   * This factor is used for distance based attenuation of the source.
   *
   * .. seealso:: :attr:`Device.distance_model`
   */
  get attenuation(): H.Ref<number>;
  set attenuation(v: H.In<number>);
  /**
   * The opening angle of the inner cone of the source. If the cone values of a source are set there are two (audible) cones with the apex at the :attr:`location` of the source and with infinite height, heading in the direction of the source's :attr:`orientation`.
   * In the inner cone the volume is normal. Outside the outer cone the volume will be :attr:`cone_volume_outer` and in the area between the volume will be interpolated linearly.
   */
  get cone_angle_inner(): H.Ref<number>;
  set cone_angle_inner(v: H.In<number>);
  /**
   * The opening angle of the outer cone of the source.
   *
   * .. seealso:: :attr:`cone_angle_inner`
   */
  get cone_angle_outer(): H.Ref<number>;
  set cone_angle_outer(v: H.In<number>);
  /**
   * The volume outside the outer cone of the source.
   *
   * .. seealso:: :attr:`cone_angle_inner`
   */
  get cone_volume_outer(): H.Ref<number>;
  set cone_volume_outer(v: H.In<number>);
  /**
   * The maximum distance of the source.
   * If the listener is further away the source volume will be 0.
   *
   * .. seealso:: :attr:`Device.distance_model`
   */
  get distance_maximum(): H.Ref<number>;
  set distance_maximum(v: H.In<number>);
  /**
   * The reference distance of the source.
   * At this distance the volume will be exactly :attr:`volume`.
   *
   * .. seealso:: :attr:`Device.distance_model`
   */
  get distance_reference(): H.Ref<number>;
  set distance_reference(v: H.In<number>);
  /** Whether the entry is muted. */
  get muted(): H.Ref<boolean>;
  set muted(v: H.In<boolean>);
  /** Whether the source's location, velocity and orientation is relative or absolute to the listener. */
  get relative(): H.Ref<boolean>;
  set relative(v: H.In<boolean>);
  /** The sound the entry is representing and will be played in the sequence. */
  get sound(): any;
  set sound(v: any);
  /**
   * The maximum volume of the source.
   *
   * .. seealso:: :attr:`Device.distance_model`
   */
  get volume_maximum(): H.Ref<number>;
  set volume_maximum(v: H.In<number>);
  /**
   * The minimum volume of the source.
   *
   * .. seealso:: :attr:`Device.distance_model`
   */
  get volume_minimum(): H.Ref<number>;
  set volume_minimum(v: H.In<number>);
}
/** The class aud.SequenceEntry: called, a new one. */
export interface SequenceEntryClass {
  /** SequenceEntry objects represent an entry of a sequenced sound. */
  (): H.Own<SequenceEntry>;
}

/**
 * Sound objects are immutable and represent a sound that can be played simultaneously multiple times. They are called factories because they create reader objects internally that are used for playback.
 *
 * aud.Sound
 */
export interface Sound {
  /**
   * Retrieves the data of the sound as numpy array.
   *
   * .. note:: Best efficiency with cached sounds.
   * @returns A two dimensional numpy float array.
   */
  data(...args: any[]): any;
  /**
   * Writes the sound to a file.
   * @param filename The path to write to.
   * @param rate The sample rate to write with.
   * @param channels The number of channels to write with.
   * @param format The sample format to write with.
   * @param container The container format for the file.
   * @param codec The codec to use in the file.
   * @param bitrate The bitrate to write with.
   * @param buffersize The size of the writing buffer.
   */
  write(filename: H.In<string>, rate: H.In<number>, channels: H.In<number>, format: H.In<number>, container: H.In<number>, codec: H.In<number>, bitrate: H.In<number>, buffersize: H.In<number>): H.Ref<void>;
  /**
   * Writes the sound to a file.
   * @param filename The path to write to.
   * @param rate The sample rate to write with.
   * @param channels The number of channels to write with.
   * @param format The sample format to write with.
   * @param container The container format for the file.
   * @param codec The codec to use in the file.
   * @param bitrate The bitrate to write with.
   * @param buffersize The size of the writing buffer.
   */
  write(kw: {
    /** The path to write to. */
    filename: H.In<string>;
    /** The sample rate to write with. */
    rate: H.In<number>;
    /** The number of channels to write with. */
    channels: H.In<number>;
    /** The sample format to write with. */
    format: H.In<number>;
    /** The container format for the file. */
    container: H.In<number>;
    /** The codec to use in the file. */
    codec: H.In<number>;
    /** The bitrate to write with. */
    bitrate: H.In<number>;
    /** The size of the writing buffer. */
    buffersize: H.In<number>;
  }): H.Ref<void>;
  /**
   * Caches a sound into RAM.
   *
   * This saves CPU usage needed for decoding and file access if the
   * underlying sound reads from a file on the harddisk,
   * but it consumes a lot of memory.
   *
   * .. note:: Only known-length factories can be buffered.
   *
   * .. warning::
   *
   *    Raw PCM data needs a lot of space, only buffer
   *    short factories.
   * @returns The created :class:`Sound` object.
   */
  cache(...args: any[]): H.Ptr<R.Sound>;
  /**
   * Accumulates a sound by summing over positive input
   * differences thus generating a monotonic sigal.
   * If additivity is set to true negative input differences get added too,
   * but positive ones with a factor of two.
   *
   * Note that with additivity the signal is not monotonic anymore.
   * @returns The created :class:`Sound` object.
   * @param additive Whether the accumulation should be additive or not.
   */
  accumulate(additive?: boolean): H.Ptr<R.Sound>;
  /**
   * Accumulates a sound by summing over positive input
   * differences thus generating a monotonic sigal.
   * If additivity is set to true negative input differences get added too,
   * but positive ones with a factor of two.
   *
   * Note that with additivity the signal is not monotonic anymore.
   * @returns The created :class:`Sound` object.
   * @param additive Whether the accumulation should be additive or not.
   */
  accumulate(kw: {
    /** Whether the accumulation should be additive or not. */
    additive?: boolean;
  }): H.Ptr<R.Sound>;
  /**
   * Attack-Decay-Sustain-Release envelopes the volume of a sound.
   * Note: there is currently no way to trigger the release with this API.
   * @returns The created :class:`Sound` object.
   * @param attack The attack time in seconds.
   * @param decay The decay time in seconds.
   * @param sustain The sustain level.
   * @param release The release level.
   */
  ADSR(attack: H.In<number>, decay: H.In<number>, sustain: H.In<number>, release: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Attack-Decay-Sustain-Release envelopes the volume of a sound.
   * Note: there is currently no way to trigger the release with this API.
   * @returns The created :class:`Sound` object.
   * @param attack The attack time in seconds.
   * @param decay The decay time in seconds.
   * @param sustain The sustain level.
   * @param release The release level.
   */
  ADSR(kw: {
    /** The attack time in seconds. */
    attack: H.In<number>;
    /** The decay time in seconds. */
    decay: H.In<number>;
    /** The sustain level. */
    sustain: H.In<number>;
    /** The release level. */
    release: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Delays by playing adding silence in front of the other sound's data.
   * @returns The created :class:`Sound` object.
   * @param time How many seconds of silence should be added before the sound.
   */
  delay(time: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Delays by playing adding silence in front of the other sound's data.
   * @returns The created :class:`Sound` object.
   * @param time How many seconds of silence should be added before the sound.
   */
  delay(kw: {
    /** How many seconds of silence should be added before the sound. */
    time: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Delays by playing adding silence in front of the other sound's data.
   * @returns The created :class:`Sound` object.
   * @param attack The attack factor.
   * @param release The release factor.
   * @param threshold The general threshold value.
   * @param arthreshold The attack/release threshold value.
   */
  envelope(attack: H.In<number>, release: H.In<number>, threshold: H.In<number>, arthreshold: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Delays by playing adding silence in front of the other sound's data.
   * @returns The created :class:`Sound` object.
   * @param attack The attack factor.
   * @param release The release factor.
   * @param threshold The general threshold value.
   * @param arthreshold The attack/release threshold value.
   */
  envelope(kw: {
    /** The attack factor. */
    attack: H.In<number>;
    /** The release factor. */
    release: H.In<number>;
    /** The general threshold value. */
    threshold: H.In<number>;
    /** The attack/release threshold value. */
    arthreshold: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Fades a sound in by raising the volume linearly in the given
   * time interval.
   *
   * .. note:: Before the fade starts it plays silence.
   * @returns The created :class:`Sound` object.
   * @param start Time in seconds when the fading should start.
   * @param length Time in seconds how long the fading should last.
   */
  fadein(start: H.In<number>, length: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Fades a sound in by raising the volume linearly in the given
   * time interval.
   *
   * .. note:: Before the fade starts it plays silence.
   * @returns The created :class:`Sound` object.
   * @param start Time in seconds when the fading should start.
   * @param length Time in seconds how long the fading should last.
   */
  fadein(kw: {
    /** Time in seconds when the fading should start. */
    start: H.In<number>;
    /** Time in seconds how long the fading should last. */
    length: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Fades a sound in by lowering the volume linearly in the given
   * time interval.
   *
   * .. note::
   *
   *    After the fade this sound plays silence, so that
   *    the length of the sound is not altered.
   * @returns The created :class:`Sound` object.
   * @param start Time in seconds when the fading should start.
   * @param length Time in seconds how long the fading should last.
   */
  fadeout(start: H.In<number>, length: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Fades a sound in by lowering the volume linearly in the given
   * time interval.
   *
   * .. note::
   *
   *    After the fade this sound plays silence, so that
   *    the length of the sound is not altered.
   * @returns The created :class:`Sound` object.
   * @param start Time in seconds when the fading should start.
   * @param length Time in seconds how long the fading should last.
   */
  fadeout(kw: {
    /** Time in seconds when the fading should start. */
    start: H.In<number>;
    /** Time in seconds how long the fading should last. */
    length: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Filters a sound with the supplied IIR filter coefficients.
   * Without the second parameter you'll get a FIR filter.
   *
   * If the first value of the a sequence is 0,
   * it will be set to 1 automatically.
   * If the first value of the a sequence is neither 0 nor 1, all
   * filter coefficients will be scaled by this value so that it is 1
   * in the end, you don't have to scale yourself.
   * @returns The created :class:`Sound` object.
   * @param b The nominator filter coefficients.
   * @param a The denominator filter coefficients.
   */
  filter(b: H.In<readonly number[]>, a?: H.In<readonly number[]>): H.Ptr<R.Sound>;
  /**
   * Filters a sound with the supplied IIR filter coefficients.
   * Without the second parameter you'll get a FIR filter.
   *
   * If the first value of the a sequence is 0,
   * it will be set to 1 automatically.
   * If the first value of the a sequence is neither 0 nor 1, all
   * filter coefficients will be scaled by this value so that it is 1
   * in the end, you don't have to scale yourself.
   * @returns The created :class:`Sound` object.
   * @param b The nominator filter coefficients.
   * @param a The denominator filter coefficients.
   */
  filter(b: H.In<readonly number[]>, kw: {
    /** The denominator filter coefficients. */
    a?: H.In<readonly number[]>;
  }): H.Ptr<R.Sound>;
  /**
   * Filters a sound with the supplied IIR filter coefficients.
   * Without the second parameter you'll get a FIR filter.
   *
   * If the first value of the a sequence is 0,
   * it will be set to 1 automatically.
   * If the first value of the a sequence is neither 0 nor 1, all
   * filter coefficients will be scaled by this value so that it is 1
   * in the end, you don't have to scale yourself.
   * @returns The created :class:`Sound` object.
   * @param b The nominator filter coefficients.
   * @param a The denominator filter coefficients.
   */
  filter(kw: {
    /** The nominator filter coefficients. */
    b: H.In<readonly number[]>;
    /** The denominator filter coefficients. */
    a?: H.In<readonly number[]>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a second order highpass filter based on the transfer
   * function :math:`H(s) = s^2 / (s^2 + s/Q + 1)`
   * @returns The created :class:`Sound` object.
   * @param frequency The cut off trequency of the highpass.
   * @param Q Q factor of the lowpass.
   */
  highpass(frequency: H.In<number>, Q?: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Creates a second order highpass filter based on the transfer
   * function :math:`H(s) = s^2 / (s^2 + s/Q + 1)`
   * @returns The created :class:`Sound` object.
   * @param frequency The cut off trequency of the highpass.
   * @param Q Q factor of the lowpass.
   */
  highpass(frequency: H.In<number>, kw: {
    /** Q factor of the lowpass. */
    Q?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a second order highpass filter based on the transfer
   * function :math:`H(s) = s^2 / (s^2 + s/Q + 1)`
   * @returns The created :class:`Sound` object.
   * @param frequency The cut off trequency of the highpass.
   * @param Q Q factor of the lowpass.
   */
  highpass(kw: {
    /** The cut off trequency of the highpass. */
    frequency: H.In<number>;
    /** Q factor of the lowpass. */
    Q?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Limits a sound within a specific start and end time.
   * @returns The created :class:`Sound` object.
   * @param start Start time in seconds.
   * @param end End time in seconds.
   */
  limit(start: H.In<number>, end: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Limits a sound within a specific start and end time.
   * @returns The created :class:`Sound` object.
   * @param start Start time in seconds.
   * @param end End time in seconds.
   */
  limit(kw: {
    /** Start time in seconds. */
    start: H.In<number>;
    /** End time in seconds. */
    end: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Loops a sound.
   *
   * .. note::
   *
   *    This is a filter function, you might consider using
   *    :attr:`Handle.loop_count` instead.
   * @returns The created :class:`Sound` object.
   * @param count How often the sound should be looped. Negative values mean endlessly.
   */
  loop(count: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Loops a sound.
   *
   * .. note::
   *
   *    This is a filter function, you might consider using
   *    :attr:`Handle.loop_count` instead.
   * @returns The created :class:`Sound` object.
   * @param count How often the sound should be looped. Negative values mean endlessly.
   */
  loop(kw: {
    /**
     * How often the sound should be looped.
     * Negative values mean endlessly.
     */
    count: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a second order lowpass filter based on the transfer    function :math:`H(s) = 1 / (s^2 + s/Q + 1)`
   * @returns The created :class:`Sound` object.
   * @param frequency The cut off trequency of the lowpass.
   * @param Q Q factor of the lowpass.
   */
  lowpass(frequency: H.In<number>, Q?: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Creates a second order lowpass filter based on the transfer    function :math:`H(s) = 1 / (s^2 + s/Q + 1)`
   * @returns The created :class:`Sound` object.
   * @param frequency The cut off trequency of the lowpass.
   * @param Q Q factor of the lowpass.
   */
  lowpass(frequency: H.In<number>, kw: {
    /** Q factor of the lowpass. */
    Q?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a second order lowpass filter based on the transfer    function :math:`H(s) = 1 / (s^2 + s/Q + 1)`
   * @returns The created :class:`Sound` object.
   * @param frequency The cut off trequency of the lowpass.
   * @param Q Q factor of the lowpass.
   */
  lowpass(kw: {
    /** The cut off trequency of the lowpass. */
    frequency: H.In<number>;
    /** Q factor of the lowpass. */
    Q?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Modulates two factories.
   *
   * .. note::
   *
   *    The two factories have to have the same specifications
   *    (channels and samplerate).
   * @returns The created :class:`Sound` object.
   * @param sound The sound to modulate over the other.
   */
  modulate(sound: R.Sound): H.Ptr<R.Sound>;
  /**
   * Modulates two factories.
   *
   * .. note::
   *
   *    The two factories have to have the same specifications
   *    (channels and samplerate).
   * @returns The created :class:`Sound` object.
   * @param sound The sound to modulate over the other.
   */
  modulate(kw: {
    /** The sound to modulate over the other. */
    sound: R.Sound;
  }): H.Ptr<R.Sound>;
  /**
   * Changes the pitch of a sound with a specific factor.
   *
   * .. note::
   *
   *    This is done by changing the sample rate of the
   *    underlying sound, which has to be an integer, so the factor
   *    value rounded and the factor may not be 100 % accurate.
   *
   * .. note::
   *
   *    This is a filter function, you might consider using
   *    :attr:`Handle.pitch` instead.
   * @returns The created :class:`Sound` object.
   * @param factor The factor to change the pitch with.
   */
  pitch(factor: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Changes the pitch of a sound with a specific factor.
   *
   * .. note::
   *
   *    This is done by changing the sample rate of the
   *    underlying sound, which has to be an integer, so the factor
   *    value rounded and the factor may not be 100 % accurate.
   *
   * .. note::
   *
   *    This is a filter function, you might consider using
   *    :attr:`Handle.pitch` instead.
   * @returns The created :class:`Sound` object.
   * @param factor The factor to change the pitch with.
   */
  pitch(kw: {
    /** The factor to change the pitch with. */
    factor: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Rechannels the sound.
   * @returns The created :class:`Sound` object.
   * @param channels The new channel configuration.
   */
  rechannel(channels: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Rechannels the sound.
   * @returns The created :class:`Sound` object.
   * @param channels The new channel configuration.
   */
  rechannel(kw: {
    /** The new channel configuration. */
    channels: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Resamples the sound.
   * @returns The created :class:`Sound` object.
   * @param rate The new sample rate.
   * @param quality Resampler performance vs quality choice (0=fastest, 3=slowest).
   */
  resample(rate: H.In<number>, quality: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Resamples the sound.
   * @returns The created :class:`Sound` object.
   * @param rate The new sample rate.
   * @param quality Resampler performance vs quality choice (0=fastest, 3=slowest).
   */
  resample(kw: {
    /** The new sample rate. */
    rate: H.In<number>;
    /** Resampler performance vs quality choice (0=fastest, 3=slowest). */
    quality: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Plays a sound reversed.
   *
   * .. note::
   *
   *    The sound has to have a finite length and has to be seekable.
   *    It's recommended to use this only with factories with
   *    fast and accurate seeking, which is not true for encoded audio
   *    files, such ones should be buffered using :meth:`cache` before
   *    being played reversed.
   *
   * .. warning::
   *
   *    If seeking is not accurate in the underlying sound
   *    you'll likely hear skips/jumps/cracks.
   * @returns The created :class:`Sound` object.
   */
  reverse(...args: any[]): H.Ptr<R.Sound>;
  /**
   * Sums the samples of a sound.
   * @returns The created :class:`Sound` object.
   */
  sum(...args: any[]): H.Ptr<R.Sound>;
  /**
   * Makes a threshold wave out of an audio wave by setting all samples
   * with a amplitude >= threshold to 1, all <= -threshold to -1 and
   * all between to 0.
   * @returns The created :class:`Sound` object.
   * @param threshold Threshold value over which an amplitude counts non-zero.
   */
  threshold(threshold?: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Makes a threshold wave out of an audio wave by setting all samples
   * with a amplitude >= threshold to 1, all <= -threshold to -1 and
   * all between to 0.
   * @returns The created :class:`Sound` object.
   * @param threshold Threshold value over which an amplitude counts non-zero.
   */
  threshold(kw: {
    /**
     * Threshold value over which an amplitude counts
     * non-zero.
     */
    threshold?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Changes the volume of a sound.
   *
   * .. note::
   *
   *    Should be in the range [0, 1] to avoid clipping.
   *
   * .. note::
   *
   *    This is a filter function, you might consider using
   *    :attr:`Handle.volume` instead.
   * @returns The created :class:`Sound` object.
   * @param volume The new volume..
   */
  volume(volume: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Changes the volume of a sound.
   *
   * .. note::
   *
   *    Should be in the range [0, 1] to avoid clipping.
   *
   * .. note::
   *
   *    This is a filter function, you might consider using
   *    :attr:`Handle.volume` instead.
   * @returns The created :class:`Sound` object.
   * @param volume The new volume..
   */
  volume(kw: {
    /** The new volume.. */
    volume: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Plays two factories in sequence.
   *
   * .. note::
   *
   *    The two factories have to have the same specifications
   *    (channels and samplerate).
   * @returns The created :class:`Sound` object.
   * @param sound The sound to play second.
   */
  join(sound: R.Sound): H.Ptr<R.Sound>;
  /**
   * Plays two factories in sequence.
   *
   * .. note::
   *
   *    The two factories have to have the same specifications
   *    (channels and samplerate).
   * @returns The created :class:`Sound` object.
   * @param sound The sound to play second.
   */
  join(kw: {
    /** The sound to play second. */
    sound: R.Sound;
  }): H.Ptr<R.Sound>;
  /**
   * Mixes two factories.
   *
   * .. note::
   *
   *    The two factories have to have the same specifications
   *    (channels and samplerate).
   * @returns The created :class:`Sound` object.
   * @param sound The sound to mix over the other.
   */
  mix(sound: R.Sound): H.Ptr<R.Sound>;
  /**
   * Mixes two factories.
   *
   * .. note::
   *
   *    The two factories have to have the same specifications
   *    (channels and samplerate).
   * @returns The created :class:`Sound` object.
   * @param sound The sound to mix over the other.
   */
  mix(kw: {
    /** The sound to mix over the other. */
    sound: R.Sound;
  }): H.Ptr<R.Sound>;
  /**
   * Plays a sound forward and then backward.
   * This is like joining a sound with its reverse.
   * @returns The created :class:`Sound` object.
   */
  pingpong(...args: any[]): H.Ptr<R.Sound>;
  /**
   * Creates a sound that will be restarted when sought backwards.
   * If the original sound is a sound list, the playing sound can change.
   * @returns The created :class:`Sound` object.
   */
  mutable(...args: any[]): H.Ptr<R.Sound>;
  /**
   * Adds a new sound to a sound list.
   *
   * .. note:: You can only add a sound to a sound list.
   * @param sound The sound that will be added to the list.
   */
  addSound(sound: R.Sound): H.Ref<void>;
  /**
   * Adds a new sound to a sound list.
   *
   * .. note:: You can only add a sound to a sound list.
   * @param sound The sound that will be added to the list.
   */
  addSound(kw: {
    /** The sound that will be added to the list. */
    sound: R.Sound;
  }): H.Ref<void>;
  /**
   * Adds Echo effect to the sound.
   * @returns The created :class:`Sound` object.
   * @param delay The delay time in seconds.
   * @param feedback The feedback amount (0.0 to 1.0).
   * @param mix The wet/dry mix (0.0 to 1.0).
   */
  echo(delay: H.In<number>, feedback: H.In<number>, mix: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Adds Echo effect to the sound.
   * @returns The created :class:`Sound` object.
   * @param delay The delay time in seconds.
   * @param feedback The feedback amount (0.0 to 1.0).
   * @param mix The wet/dry mix (0.0 to 1.0).
   */
  echo(kw: {
    /** The delay time in seconds. */
    delay: H.In<number>;
    /** The feedback amount (0.0 to 1.0). */
    feedback: H.In<number>;
    /** The wet/dry mix (0.0 to 1.0). */
    mix: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a sound that will apply convolution to another sound.
   * @returns The created :class:`Sound` object.
   */
  convolver(...args: any[]): H.Ptr<R.Sound>;
  /**
   * Creates a binaural sound using another sound as source. The original sound must be mono
   * @returns The created :class:`Sound` object.
   */
  binaural(...args: any[]): H.Ptr<R.Sound>;
  /**
   * Applies time-stretching and pitch-scaling to the sound.
   * @returns The created :class:`Sound` object.
   * @param time_stretch The factor by which to stretch or compress time.
   * @param pitch_scale The factor by which to adjust the pitch.
   * @param quality Rubberband stretcher quality (STRETCHER_QUALITY_*).
   * @param preserve_formant Whether to preserve the vocal formants during pitch-shifting.
   */
  timeStretchPitchScale(time_stretch: H.In<number>, pitch_scale: H.In<number>, quality: H.In<number>, preserve_formant: H.In<boolean>): H.Ptr<R.Sound>;
  /**
   * Applies time-stretching and pitch-scaling to the sound.
   * @returns The created :class:`Sound` object.
   * @param time_stretch The factor by which to stretch or compress time.
   * @param pitch_scale The factor by which to adjust the pitch.
   * @param quality Rubberband stretcher quality (STRETCHER_QUALITY_*).
   * @param preserve_formant Whether to preserve the vocal formants during pitch-shifting.
   */
  timeStretchPitchScale(kw: {
    /** The factor by which to stretch or compress time. */
    time_stretch: H.In<number>;
    /** The factor by which to adjust the pitch. */
    pitch_scale: H.In<number>;
    /** Rubberband stretcher quality (STRETCHER_QUALITY_*). */
    quality: H.In<number>;
    /** Whether to preserve the vocal formants during pitch-shifting. */
    preserve_formant: H.In<boolean>;
  }): H.Ptr<R.Sound>;
  /**
   * Applies time-stretching and pitch-scaling to the sound.
   *
   *  :arg quality: Rubberband stretcher quality (STRETCHER_QUALITY_*).
   * @returns The created :class:`Sound` object.
   */
  animateableTimeStretchPitchScale(): H.Ptr<R.Sound>;
  /** The sample specification of the sound as a tuple with rate and channel count. */
  get specs(): H.Ref<[number, number]>;
  set specs(v: H.In<readonly [number, number]>);
  /** The sample specification of the sound as a tuple with rate and channel count. */
  get length(): H.Ref<number>;
  set length(v: H.In<number>);
}
/** The class aud.Sound: called, a new one. */
export interface SoundClass {
  /**
   * Sound objects are immutable and represent a sound that can be played simultaneously multiple times. They are called factories because they create reader objects internally that are used for playback.
   * @param filename Path of the file.
   * @param stream The index of the audio stream within the file if it contains multiple audio streams, 0 by default.
   */
  (filename: H.In<string>, stream?: H.In<number>): H.Own<Sound>;
  /**
   * Sound objects are immutable and represent a sound that can be played simultaneously multiple times. They are called factories because they create reader objects internally that are used for playback.
   * @param filename Path of the file.
   * @param stream The index of the audio stream within the file if it contains multiple audio streams, 0 by default.
   */
  (filename: H.In<string>, kw: {
    /**
     * The index of the audio stream within the file if it
     * contains multiple audio streams, 0 by default.
     */
    stream?: H.In<number>;
  }): H.Own<Sound>;
  /**
   * Sound objects are immutable and represent a sound that can be played simultaneously multiple times. They are called factories because they create reader objects internally that are used for playback.
   * @param filename Path of the file.
   * @param stream The index of the audio stream within the file if it contains multiple audio streams, 0 by default.
   */
  (kw: {
    /** Path of the file. */
    filename: H.In<string>;
    /**
     * The index of the audio stream within the file if it
     * contains multiple audio streams, 0 by default.
     */
    stream?: H.In<number>;
  }): H.Own<Sound>;
  /**
   * Creates a sound from a data buffer.
   * @returns The created :class:`Sound` object.
   * @param data The data as two dimensional numpy array.
   * @param rate The sample rate.
   */
  buffer(data: any, rate: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Creates a sound from a data buffer.
   * @returns The created :class:`Sound` object.
   * @param data The data as two dimensional numpy array.
   * @param rate The sample rate.
   */
  buffer(kw: {
    /** The data as two dimensional numpy array. */
    data: any;
    /** The sample rate. */
    rate: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a sound object of a sound file.
   *
   * .. warning::
   *
   *    If the file doesn't exist or can't be read you will
   *    not get an exception immediately, but when you try to start
   *    playback of that sound.
   * @returns The created :class:`Sound` object.
   * @param filename Path of the file.
   */
  file(filename: H.In<string>): H.Ptr<R.Sound>;
  /**
   * Creates a sound object of a sound file.
   *
   * .. warning::
   *
   *    If the file doesn't exist or can't be read you will
   *    not get an exception immediately, but when you try to start
   *    playback of that sound.
   * @returns The created :class:`Sound` object.
   * @param filename Path of the file.
   */
  file(kw: {
    /** Path of the file. */
    filename: H.In<string>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a sawtooth sound which plays a sawtooth wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the sawtooth wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  sawtooth(frequency: H.In<number>, rate?: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Creates a sawtooth sound which plays a sawtooth wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the sawtooth wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  sawtooth(frequency: H.In<number>, kw: {
    /**
     * The sampling rate in Hz. It's recommended to set this
     * value to the playback device's sampling rate to avoid resampling.
     */
    rate?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a sawtooth sound which plays a sawtooth wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the sawtooth wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  sawtooth(kw: {
    /** The frequency of the sawtooth wave in Hz. */
    frequency: H.In<number>;
    /**
     * The sampling rate in Hz. It's recommended to set this
     * value to the playback device's sampling rate to avoid resampling.
     */
    rate?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a silence sound which plays simple silence.
   * @returns The created :class:`Sound` object.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  silence(rate?: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Creates a silence sound which plays simple silence.
   * @returns The created :class:`Sound` object.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  silence(kw: {
    /**
     * The sampling rate in Hz. It's recommended to set this
     * value to the playback device's sampling rate to avoid resampling.
     */
    rate?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a sine sound which plays a sine wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the sine wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  sine(frequency: H.In<number>, rate?: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Creates a sine sound which plays a sine wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the sine wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  sine(frequency: H.In<number>, kw: {
    /**
     * The sampling rate in Hz. It's recommended to set this
     * value to the playback device's sampling rate to avoid resampling.
     */
    rate?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a sine sound which plays a sine wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the sine wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  sine(kw: {
    /** The frequency of the sine wave in Hz. */
    frequency: H.In<number>;
    /**
     * The sampling rate in Hz. It's recommended to set this
     * value to the playback device's sampling rate to avoid resampling.
     */
    rate?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a square sound which plays a square wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the square wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  square(frequency: H.In<number>, rate?: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Creates a square sound which plays a square wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the square wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  square(frequency: H.In<number>, kw: {
    /**
     * The sampling rate in Hz. It's recommended to set this
     * value to the playback device's sampling rate to avoid resampling.
     */
    rate?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a square sound which plays a square wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the square wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  square(kw: {
    /** The frequency of the square wave in Hz. */
    frequency: H.In<number>;
    /**
     * The sampling rate in Hz. It's recommended to set this
     * value to the playback device's sampling rate to avoid resampling.
     */
    rate?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a triangle sound which plays a triangle wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the triangle wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  triangle(frequency: H.In<number>, rate?: H.In<number>): H.Ptr<R.Sound>;
  /**
   * Creates a triangle sound which plays a triangle wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the triangle wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  triangle(frequency: H.In<number>, kw: {
    /**
     * The sampling rate in Hz. It's recommended to set this
     * value to the playback device's sampling rate to avoid resampling.
     */
    rate?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates a triangle sound which plays a triangle wave.
   * @returns The created :class:`Sound` object.
   * @param frequency The frequency of the triangle wave in Hz.
   * @param rate The sampling rate in Hz. It's recommended to set this value to the playback device's sampling rate to avoid resampling.
   */
  triangle(kw: {
    /** The frequency of the triangle wave in Hz. */
    frequency: H.In<number>;
    /**
     * The sampling rate in Hz. It's recommended to set this
     * value to the playback device's sampling rate to avoid resampling.
     */
    rate?: H.In<number>;
  }): H.Ptr<R.Sound>;
  /**
   * Creates an empty sound list that can contain several sounds.
   * @returns The created :class:`Sound` object.
   */
  list(...args: any[]): H.Ptr<R.Sound>;
}

/**
 * The source object represents the source position of a binaural sound.
 *
 * aud.Source
 */
export interface Source {
  /** The azimuth angle. */
  get azimuth(): H.Ref<number>;
  set azimuth(v: H.In<number>);
  /** The elevation angle. */
  get elevation(): H.Ref<number>;
  set elevation(v: H.In<number>);
  /** The distance value. 0 is min, 1 is max. */
  get distance(): H.Ref<number>;
  set distance(v: H.In<number>);
}
/** The class aud.Source: called, a new one. */
export interface SourceClass {
  /**
   * The source object represents the source position of a binaural sound.
   * @param azimuth The azimuth angle in degrees.
   * @param elevation The elevation angle in degrees.
   * @param distance The distance of the source.
   */
  (azimuth: H.In<number>, elevation: H.In<number>, distance: H.In<number>): H.Own<Source>;
}

/**
 * A ThreadPool is used to parallelize convolution efficiently.
 *
 * aud.ThreadPool
 */
export interface ThreadPool {

}
/** The class aud.ThreadPool: called, a new one. */
export interface ThreadPoolClass {
  /**
   * A ThreadPool is used to parallelize convolution efficiently.
   * @param nThreads The number of threads in the pool.
   */
  (nThreads: H.In<number>): H.Own<ThreadPool>;
}

/** aud.error */
export interface error {

}
/** The class aud.error: called, a new one. */
export interface errorClass {
  (...args: any[]): H.Own<error>;
}