za.co.monadic.scopus.echo

EchoCanceller

class EchoCanceller extends AnyRef

Wrapper for the Speex echo canceller function. Note that the playback and capture methods are designed to run in separate threads, hence the synchronization on this. If you use playback/capture with cancel, you deserve what you get.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EchoCanceller
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EchoCanceller(frameSize: Int, filterLength: Int)

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def cancel(rec: Array[Short], play: Array[Short]): Array[Short]

    If recording and playback are synchronised, use this call to cancel the echos.

    If recording and playback are synchronised, use this call to cancel the echos.

    rec

    Recorded audio frame

    play

    Audio destined for play back

    returns

    Echo cancelled recorded audio packet

  6. def capture(recorded: Array[Short]): Array[Short]

    Captured audio should be passed to this function after it has been recorded from the sound card.

    Captured audio should be passed to this function after it has been recorded from the sound card. Use this call in conjunction with the @see playback call if the sound card read and writes (record and playback) are in different threads.

    Note that @see capture and @see playback are not thread safe.

    recorded

    The recorded audio buffer

    returns

    The audio with cancelled echo.

  7. var clean: Boolean

  8. def cleanup(): Unit

    Release all pointers allocated for the decoder.

    Release all pointers allocated for the decoder. Make every attempt to call this when you are done with the encoder as finalise() is what it is in the JVM

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. final def finalize(): Unit

    Definition Classes
    EchoCanceller → AnyRef
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def playback(audio: Array[Short]): Unit

    Call this every time a voice packet is played to the speakers.

    Call this every time a voice packet is played to the speakers. Use this call in conjunction with the @see capture call if the sound card read and writes (record and playback) are in different threads.

    Note that @see capture and @see playback are not thread safe.

    audio

    Audio that has just been or about to be played

  20. val state: Long

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped