Class AudioData


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

    Class Documentation

    Blender Source Code


    Audio

    • Field Detail

      • __DNA__SDNA_INDEX

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

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

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

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

        Pointer Arithmetics

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

         AudioData audiodata = ...;
         CPointer<Object> p = audiodata.__dna__addressof(AudioData.__DNA__FIELD__mixrate);
         CPointer<Integer> p_mixrate = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'mixrate'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__main

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

        Pointer Arithmetics

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

         AudioData audiodata = ...;
         CPointer<Object> p = audiodata.__dna__addressof(AudioData.__DNA__FIELD__main);
         CPointer<Float> p_main = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'main'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__speed_of_sound

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

        Pointer Arithmetics

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

         AudioData audiodata = ...;
         CPointer<Object> p = audiodata.__dna__addressof(AudioData.__DNA__FIELD__speed_of_sound);
         CPointer<Float> p_speed_of_sound = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'speed_of_sound'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__doppler_factor

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

        Pointer Arithmetics

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

         AudioData audiodata = ...;
         CPointer<Object> p = audiodata.__dna__addressof(AudioData.__DNA__FIELD__doppler_factor);
         CPointer<Float> p_doppler_factor = p.cast(new Class[]{Float.class});
         

        Metadata

        • Field: 'doppler_factor'
        • Signature: 'float'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__distance_model

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

        Pointer Arithmetics

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

         AudioData audiodata = ...;
         CPointer<Object> p = audiodata.__dna__addressof(AudioData.__DNA__FIELD__distance_model);
         CPointer<Integer> p_distance_model = p.cast(new Class[]{Integer.class});
         

        Metadata

        • Field: 'distance_model'
        • Signature: 'int'
        • Actual Size (32bit/64bit): 4/4
      • __DNA__FIELD__flag

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

        Pointer Arithmetics

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

         AudioData audiodata = ...;
         CPointer<Object> p = audiodata.__dna__addressof(AudioData.__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___pad

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

        Pointer Arithmetics

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

         AudioData audiodata = ...;
         CPointer<Object> p = audiodata.__dna__addressof(AudioData.__DNA__FIELD___pad);
         CPointer<CArrayFacade<Byte>> p__pad = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

        • Field: '_pad'
        • Signature: 'char[2]'
        • Actual Size (32bit/64bit): 2/2
      • __DNA__FIELD__volume

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

        Pointer Arithmetics

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

         AudioData audiodata = ...;
         CPointer<Object> p = audiodata.__dna__addressof(AudioData.__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___pad2

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

        Pointer Arithmetics

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

         AudioData audiodata = ...;
         CPointer<Object> p = audiodata.__dna__addressof(AudioData.__DNA__FIELD___pad2);
         CPointer<CArrayFacade<Byte>> p__pad2 = p.cast(new Class[]{CArrayFacade.class, Byte.class});
         

        Metadata

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

      • AudioData

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

        protected AudioData​(AudioData that)
    • Method Detail

      • getMixrate

        public int getMixrate()
                       throws java.io.IOException
        Get method for struct member 'mixrate'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mixrate
      • setMixrate

        public void setMixrate​(int mixrate)
                        throws java.io.IOException
        Set method for struct member 'mixrate'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__mixrate
      • getMain

        public float getMain()
                      throws java.io.IOException
        Get method for struct member 'main'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__main
      • setMain

        public void setMain​(float main)
                     throws java.io.IOException
        Set method for struct member 'main'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__main
      • getSpeed_of_sound

        public float getSpeed_of_sound()
                                throws java.io.IOException
        Get method for struct member 'speed_of_sound'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__speed_of_sound
      • setSpeed_of_sound

        public void setSpeed_of_sound​(float speed_of_sound)
                               throws java.io.IOException
        Set method for struct member 'speed_of_sound'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__speed_of_sound
      • getDoppler_factor

        public float getDoppler_factor()
                                throws java.io.IOException
        Get method for struct member 'doppler_factor'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__doppler_factor
      • setDoppler_factor

        public void setDoppler_factor​(float doppler_factor)
                               throws java.io.IOException
        Set method for struct member 'doppler_factor'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__doppler_factor
      • getDistance_model

        public int getDistance_model()
                              throws java.io.IOException
        Get method for struct member 'distance_model'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__distance_model
      • setDistance_model

        public void setDistance_model​(int distance_model)
                               throws java.io.IOException
        Set method for struct member 'distance_model'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__distance_model
      • getFlag

        public short getFlag()
                      throws java.io.IOException
        Get method for struct member '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'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__flag
      • get_pad

        public CArrayFacade<java.lang.Byte> get_pad()
                                             throws java.io.IOException
        Get method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • set_pad

        public void set_pad​(CArrayFacade<java.lang.Byte> _pad)
                     throws java.io.IOException
        Set method for struct member '_pad'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad
      • getVolume

        public float getVolume()
                        throws java.io.IOException
        Get method for struct member 'volume'.
        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'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD__volume
      • get_pad2

        public CArrayFacade<java.lang.Byte> get_pad2()
                                              throws java.io.IOException
        Get method for struct member '_pad2'.
        Throws:
        java.io.IOException
        See Also:
        __DNA__FIELD___pad2
      • set_pad2

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

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