Class LiveSoundActor

    • Field Detail

      • bitsPerSample

        public SharedParameter bitsPerSample
        The number of bits per sample. This is an integer that defaults to 16. This parameter is shared by all instances of this class and subclasses in the model, so changing it in one of those actors will cause it to change in all. An exception will be thrown if this parameter is set to an unsupported bit resolution (currently, only 8 and 16 bits are supported).
      • bufferSize

        public SharedParameter bufferSize
        The requested buffer size in the audio hardware. This affects how far ahead of real time the model can get. A larger buffer size may limit the responsivity of the model because changes in the model will be heard only after the buffer has been flushed. This is an integer that defaults to 1024, representing a buffer with 1024 samples per channel. At an 8 kHz sample rate, this means a worst-case latency of about 1/8 seconds. This parameter is shared by all instances of this class and subclasses in the model, so changing it in one of those actors will cause it to change in all.
      • channels

        public SharedParameter channels
        The number of audio channels. This is an integer that defaults to 1. This parameter is shared by all instances of this class and subclasses in the model, so changing it in one of those actors will cause it to change in all. An exception will be thrown if this parameter is set to an an unsupported channel number.
      • sampleRate

        public SharedParameter sampleRate
        The sample rate in samples per second. This is an integer that defaults to 8000. This parameter is shared by all instances of this class and subclasses in the model, so changing it in one of those actors will cause it to change in all. An exception will be thrown if this parameter is set to an unsupported sample rate.
      • transferSize

        public SharedParameter transferSize
        The number of samples that will be transferred to the audio driver together. This is an integer with default 128. This parameter is shared by all instances of this class and subclasses in the model, so changing it in one of those actors will cause it to change in all.
      • _bitsPerSample

        protected int _bitsPerSample
        Value of the bitsPerSample parameter.
      • _bufferSize

        protected int _bufferSize
        The requested buffer size.
      • _channels

        protected int _channels
        The number of channels. Initialized from the channels parameter.
      • _sampleRate

        protected int _sampleRate
        The value of the sampleRate parameter.
      • _transferSize

        protected int _transferSize
        The transfer size. Initialized from the transferSize parameter.
      • _isExecuting

        protected boolean _isExecuting
        True if this actor is executing. Set to true by initialize(), set to false by wrapup().