Class Speaker


  • public class Speaker
    extends CFacade
    Generated facet for DNA struct type 'Speaker'.

    Class Documentation

    • Field Detail

      • __DNA__SDNA_INDEX

        public static final int __DNA__SDNA_INDEX
        This is the sdna index of the struct Speaker.

        It is required when allocating a new block to store data for Speaker.

        See Also:
        StructDNA, BlockTable, Constant Field Values
      • __DNA__FIELD__id

        public static final long[] __DNA__FIELD__id
        Field descriptor (offset) for struct member 'id'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__id);
         CPointer<ID> p_id = p.cast(new Class[]{ID.class});
         

        Metadata

        • Field: 'id'
        • Signature: 'ID'
        • Actual Size (32bit/64bit): 152/192
      • __DNA__FIELD__adt

        public static final long[] __DNA__FIELD__adt
        Field descriptor (offset) for struct member 'adt'.

        Field Documentation

        Blender Source Code

        Animation data (must be immediately after id for utilities to use it).

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__adt);
         CPointer<CPointer<AnimData>> p_adt = p.cast(new Class[]{CPointer.class, AnimData.class});
         

        Metadata

        • Field: 'adt'
        • Signature: 'AnimData*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__sound

        public static final long[] __DNA__FIELD__sound
        Field descriptor (offset) for struct member 'sound'.

        Field Documentation

        Blender Python API

        Sound data-block used by this speaker

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__sound);
         CPointer<CPointer<bSound>> p_sound = p.cast(new Class[]{CPointer.class, bSound.class});
         

        Metadata

        • Field: 'sound'
        • Signature: 'bSound*'
        • Actual Size (32bit/64bit): 4/8
      • __DNA__FIELD__volume_max

        public static final long[] __DNA__FIELD__volume_max
        Field descriptor (offset) for struct member 'volume_max'.

        Field Documentation

        Blender Python API

        Maximum volume, no matter how near the object is

        Blender Source Code

        not animatable properties

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__volume_max);
         CPointer<Float> p_volume_max = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'volume_max'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__volume_min

        public static final long[] __DNA__FIELD__volume_min
        Field descriptor (offset) for struct member 'volume_min'.

        Field Documentation

        Blender Python API

        Minimum volume, no matter how far away the object is

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__volume_min);
         CPointer<Float> p_volume_min = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'volume_min'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__distance_max

        public static final long[] __DNA__FIELD__distance_max
        Field descriptor (offset) for struct member 'distance_max'.

        Field Documentation

        Blender Python API

        Maximum distance for volume calculation, no matter how far away the object is

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__distance_max);
         CPointer<Float> p_distance_max = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'distance_max'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__distance_reference

        public static final long[] __DNA__FIELD__distance_reference
        Field descriptor (offset) for struct member 'distance_reference'.

        Field Documentation

        Blender Python API

        Reference distance at which volume is 100%

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__distance_reference);
         CPointer<Float> p_distance_reference = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'distance_reference'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__attenuation

        public static final long[] __DNA__FIELD__attenuation
        Field descriptor (offset) for struct member 'attenuation'.

        Field Documentation

        Blender Python API

        How strong the distance affects volume, depending on distance model

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__attenuation);
         CPointer<Float> p_attenuation = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'attenuation'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__cone_angle_outer

        public static final long[] __DNA__FIELD__cone_angle_outer
        Field descriptor (offset) for struct member 'cone_angle_outer'.

        Field Documentation

        Blender Python API

        Angle of the outer cone, in degrees, outside this cone the volume is the outer cone volume, between inner and outer cone the volume is interpolated

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__cone_angle_outer);
         CPointer<Float> p_cone_angle_outer = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'cone_angle_outer'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__cone_angle_inner

        public static final long[] __DNA__FIELD__cone_angle_inner
        Field descriptor (offset) for struct member 'cone_angle_inner'.

        Field Documentation

        Blender Python API

        Angle of the inner cone, in degrees, inside the cone the volume is 100%

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__cone_angle_inner);
         CPointer<Float> p_cone_angle_inner = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'cone_angle_inner'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__cone_volume_outer

        public static final long[] __DNA__FIELD__cone_volume_outer
        Field descriptor (offset) for struct member 'cone_volume_outer'.

        Field Documentation

        Blender Python API

        Volume outside the outer cone

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__cone_volume_outer);
         CPointer<Float> p_cone_volume_outer = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'cone_volume_outer'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__volume

        public static final long[] __DNA__FIELD__volume
        Field descriptor (offset) for struct member 'volume'.

        Field Documentation

        Blender Python API

        How loud the sound is

        Blender Source Code

        animatable properties

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__volume);
         CPointer<Float> p_volume = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'volume'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__pitch

        public static final long[] __DNA__FIELD__pitch
        Field descriptor (offset) for struct member 'pitch'.

        Field Documentation

        Blender Python API

        Playback pitch of the sound

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__pitch);
         CPointer<Float> p_pitch = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'pitch'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__flag

        public static final long[] __DNA__FIELD__flag
        Field descriptor (offset) for struct member 'flag'.

        Field Documentation

        Blender Source Code

        flag

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD__flag);
         CPointer<Short> p_flag = p.cast(new Class[]{Short.class});
         

        Metadata

        • Field: 'flag'
        • Signature: 'short'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD___pad1

        public static final long[] __DNA__FIELD___pad1
        Field descriptor (offset) for struct member '_pad1'.

        Pointer Arithmetics

        This is how you get a reference on the corresponding field in the struct:

         Speaker speaker = ...;
         CPointer<Object> p = speaker.__dna__addressof(Speaker.__DNA__FIELD___pad1);
         CPointer<CArrayFacade<Byte>> p__pad1 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad1'
        • Signature: 'char[6]'
        • Actual Size (32bit/64bit): 6/6
    • Constructor Detail

      • Speaker

        public Speaker​(long __address,
                       Block __block,
                       BlockTable __blockTable)
      • Speaker

        protected Speaker​(Speaker that)
    • Method Detail

      • getId

        public ID getId()
                 throws java.io.IOException
        Get method for struct member 'id'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • setId

        public void setId​(ID id)
                   throws java.io.IOException
        Set method for struct member 'id'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__id
      • getAdt

        public CPointer<AnimData> getAdt()
                                  throws java.io.IOException
        Get method for struct member 'adt'.

        Field Documentation

        Blender Source Code

        Animation data (must be immediately after id for utilities to use it).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__adt
      • setAdt

        public void setAdt​(CPointer<AnimData> adt)
                    throws java.io.IOException
        Set method for struct member 'adt'.

        Field Documentation

        Blender Source Code

        Animation data (must be immediately after id for utilities to use it).

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__adt
      • getSound

        public CPointer<bSound> getSound()
                                  throws java.io.IOException
        Get method for struct member 'sound'.

        Field Documentation

        Blender Python API

        Sound data-block used by this speaker
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__sound
      • setSound

        public void setSound​(CPointer<bSound> sound)
                      throws java.io.IOException
        Set method for struct member 'sound'.

        Field Documentation

        Blender Python API

        Sound data-block used by this speaker
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__sound
      • getVolume_max

        public float getVolume_max()
                            throws java.io.IOException
        Get method for struct member 'volume_max'.

        Field Documentation

        Blender Python API

        Maximum volume, no matter how near the object is

        Blender Source Code

        not animatable properties

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__volume_max
      • setVolume_max

        public void setVolume_max​(float volume_max)
                           throws java.io.IOException
        Set method for struct member 'volume_max'.

        Field Documentation

        Blender Python API

        Maximum volume, no matter how near the object is

        Blender Source Code

        not animatable properties

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__volume_max
      • getVolume_min

        public float getVolume_min()
                            throws java.io.IOException
        Get method for struct member 'volume_min'.

        Field Documentation

        Blender Python API

        Minimum volume, no matter how far away the object is
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__volume_min
      • setVolume_min

        public void setVolume_min​(float volume_min)
                           throws java.io.IOException
        Set method for struct member 'volume_min'.

        Field Documentation

        Blender Python API

        Minimum volume, no matter how far away the object is
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__volume_min
      • getDistance_max

        public float getDistance_max()
                              throws java.io.IOException
        Get method for struct member 'distance_max'.

        Field Documentation

        Blender Python API

        Maximum distance for volume calculation, no matter how far away the object is
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__distance_max
      • setDistance_max

        public void setDistance_max​(float distance_max)
                             throws java.io.IOException
        Set method for struct member 'distance_max'.

        Field Documentation

        Blender Python API

        Maximum distance for volume calculation, no matter how far away the object is
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__distance_max
      • getDistance_reference

        public float getDistance_reference()
                                    throws java.io.IOException
        Get method for struct member 'distance_reference'.

        Field Documentation

        Blender Python API

        Reference distance at which volume is 100%
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__distance_reference
      • setDistance_reference

        public void setDistance_reference​(float distance_reference)
                                   throws java.io.IOException
        Set method for struct member 'distance_reference'.

        Field Documentation

        Blender Python API

        Reference distance at which volume is 100%
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__distance_reference
      • getAttenuation

        public float getAttenuation()
                             throws java.io.IOException
        Get method for struct member 'attenuation'.

        Field Documentation

        Blender Python API

        How strong the distance affects volume, depending on distance model
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__attenuation
      • setAttenuation

        public void setAttenuation​(float attenuation)
                            throws java.io.IOException
        Set method for struct member 'attenuation'.

        Field Documentation

        Blender Python API

        How strong the distance affects volume, depending on distance model
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__attenuation
      • getCone_angle_outer

        public float getCone_angle_outer()
                                  throws java.io.IOException
        Get method for struct member 'cone_angle_outer'.

        Field Documentation

        Blender Python API

        Angle of the outer cone, in degrees, outside this cone the volume is the outer cone volume, between inner and outer cone the volume is interpolated
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cone_angle_outer
      • setCone_angle_outer

        public void setCone_angle_outer​(float cone_angle_outer)
                                 throws java.io.IOException
        Set method for struct member 'cone_angle_outer'.

        Field Documentation

        Blender Python API

        Angle of the outer cone, in degrees, outside this cone the volume is the outer cone volume, between inner and outer cone the volume is interpolated
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cone_angle_outer
      • getCone_angle_inner

        public float getCone_angle_inner()
                                  throws java.io.IOException
        Get method for struct member 'cone_angle_inner'.

        Field Documentation

        Blender Python API

        Angle of the inner cone, in degrees, inside the cone the volume is 100%
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cone_angle_inner
      • setCone_angle_inner

        public void setCone_angle_inner​(float cone_angle_inner)
                                 throws java.io.IOException
        Set method for struct member 'cone_angle_inner'.

        Field Documentation

        Blender Python API

        Angle of the inner cone, in degrees, inside the cone the volume is 100%
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cone_angle_inner
      • getCone_volume_outer

        public float getCone_volume_outer()
                                   throws java.io.IOException
        Get method for struct member 'cone_volume_outer'.

        Field Documentation

        Blender Python API

        Volume outside the outer cone
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cone_volume_outer
      • setCone_volume_outer

        public void setCone_volume_outer​(float cone_volume_outer)
                                  throws java.io.IOException
        Set method for struct member 'cone_volume_outer'.

        Field Documentation

        Blender Python API

        Volume outside the outer cone
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__cone_volume_outer
      • getVolume

        public float getVolume()
                        throws java.io.IOException
        Get method for struct member 'volume'.

        Field Documentation

        Blender Python API

        How loud the sound is

        Blender Source Code

        animatable properties

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__volume
      • setVolume

        public void setVolume​(float volume)
                       throws java.io.IOException
        Set method for struct member 'volume'.

        Field Documentation

        Blender Python API

        How loud the sound is

        Blender Source Code

        animatable properties

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__volume
      • getPitch

        public float getPitch()
                       throws java.io.IOException
        Get method for struct member 'pitch'.

        Field Documentation

        Blender Python API

        Playback pitch of the sound
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pitch
      • setPitch

        public void setPitch​(float pitch)
                      throws java.io.IOException
        Set method for struct member 'pitch'.

        Field Documentation

        Blender Python API

        Playback pitch of the sound
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__pitch
      • getFlag

        public short getFlag()
                      throws java.io.IOException
        Get method for struct member 'flag'.

        Field Documentation

        Blender Source Code

        flag

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • setFlag

        public void setFlag​(short flag)
                     throws java.io.IOException
        Set method for struct member 'flag'.

        Field Documentation

        Blender Source Code

        flag

        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • get_pad1

        public CArrayFacade<java.lang.Byte> get_pad1()
                                              throws java.io.IOException
        Get method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • set_pad1

        public void set_pad1​(CArrayFacade<java.lang.Byte> _pad1)
                      throws java.io.IOException
        Set method for struct member '_pad1'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad1
      • __io__addressof

        public CPointer<Speaker> __io__addressof()
        Instantiates a pointer on this instance.