Class GvrAudioProcessor

    • Constructor Detail

      • GvrAudioProcessor

        public GvrAudioProcessor()
        Deprecated.
        Creates a new GVR audio processor.
    • Method Detail

      • updateOrientation

        public void updateOrientation​(float w,
                                      float x,
                                      float y,
                                      float z)
        Deprecated.
        Updates the listener head orientation. May be called on any thread. See GvrAudioSurround.updateNativeOrientation.
        Parameters:
        w - The w component of the quaternion.
        x - The x component of the quaternion.
        y - The y component of the quaternion.
        z - The z component of the quaternion.
      • isActive

        public boolean isActive()
        Deprecated.
        Description copied from interface: AudioProcessor
        Returns whether the processor is configured and will process input buffers.
        Specified by:
        isActive in interface AudioProcessor
      • queueInput

        public void queueInput​(ByteBuffer input)
        Deprecated.
        Description copied from interface: AudioProcessor
        Queues audio data between the position and limit of the input buffer for processing. buffer must be a direct byte buffer with native byte order. Its contents are treated as read-only. Its position will be advanced by the number of bytes consumed (which may be zero). The caller retains ownership of the provided buffer. Calling this method invalidates any previous buffer returned by AudioProcessor.getOutput().
        Specified by:
        queueInput in interface AudioProcessor
        Parameters:
        input - The input buffer to process.
      • getOutput

        public ByteBuffer getOutput()
        Deprecated.
        Description copied from interface: AudioProcessor
        Returns a buffer containing processed output data between its position and limit. The buffer will always be a direct byte buffer with native byte order. Calling this method invalidates any previously returned buffer. The buffer will be empty if no output is available.
        Specified by:
        getOutput in interface AudioProcessor
        Returns:
        A buffer containing processed output data between its position and limit.
      • flush

        public void flush()
        Deprecated.
        Description copied from interface: AudioProcessor
        Clears any buffered data and pending output. If the audio processor is active, also prepares the audio processor to receive a new stream of input in the last configured (pending) format.
        Specified by:
        flush in interface AudioProcessor
      • reset

        public void reset()
        Deprecated.
        Description copied from interface: AudioProcessor
        Resets the processor to its unconfigured state, releasing any resources.
        Specified by:
        reset in interface AudioProcessor