trait AuralSystem extends Observable[RT, State]
An AuralSystem is the logical representation of a sound synthesis server, whether running or not.
To use an aural system, a client connects via addClient. The client will be notified when the
server is up and running.
- Alphabetic
- By Inheritance
- AuralSystem
- Observable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def connect(config: Config = Server.Config(), client: Config = Client.Config())(implicit tx: RT): Unit
Connects to a running server.
- abstract def react(fun: (RT) => (State) => Unit)(implicit tx: RT): Disposable[RT]
Registers a live observer with this observable.
Registers a live observer with this observable. The method is called with the observing function which receives the observable's update message of type
A, and the method generates an opaqueDisposableinstance, which may be used to remove the observer eventually (through thedisposemethod).- Definition Classes
- Observable
- abstract def reactNow(fun: (RT) => (State) => Unit)(implicit tx: RT): Disposable[RT]
- abstract def serverOption(implicit tx: RT): Option[Server]
- abstract def start(config: Config = Server.Config(), client: Config = Client.Config(), connect: Boolean = false)(implicit tx: RT): Unit
Boots the server, or connects to an existing one.
Boots the server, or connects to an existing one. This method must be called from within a transaction.
- connect
if
true, tries to connect to a running server; iffalse, starts a new scsynth process.
- abstract def state(implicit tx: RT): State
- abstract def stop()(implicit tx: RT): Unit
Quits the server.
Quits the server. This method must not be called from within a transaction.
- abstract def whenStarted(fun: (Server) => Unit)(implicit tx: RT): Unit
Registers a callback to be invoked when the server has been booted.
Registers a callback to be invoked when the server has been booted. If the server is already running, this has no effect. This method is transaction safe.
The function is always execution _outside_ of a transaction.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
- Deprecated