trait AuralSystem extends AnyRef
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
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
addClient(c: AuralSystem.Client)(implicit tx: Txn): Unit
Adds a client to the system.
Adds a client to the system. It is safe to call this method both inside and outside of a transaction. If called inside a transaction, this is transaction safe (no duplicate registration if the transaction is retried).
- c
the client to register. If the server is already running, the client will _not_ be immediately notified.
-
abstract
def
addClientNow(c: AuralSystem.Client)(implicit tx: Txn): Unit
Same as
addClient, but additionally callsauralStartedif the server is already running. -
abstract
def
removeClient(c: AuralSystem.Client)(implicit tx: Txn): Unit
Removes a client to the system.
Removes a client to the system. It is safe to call this method both inside and outside of a transaction. If called inside a transaction, this is transaction safe.
- c
the client to unregister. It is allowed to call this method even if the client was already unregistered.
- abstract def serverOption(implicit tx: Txn): Option[lucre.synth.Server]
-
abstract
def
start(config: Config = Server.Config(), client: Config = Client.Config(), connect: Boolean = false)(implicit tx: Txn): Unit
Boots the server.
Boots the server. This method must be called from within a transaction.
-
abstract
def
stop()(implicit tx: Txn): Unit
Quits the server.
Quits the server. This method must not be called from within a transaction.
-
abstract
def
whenStarted(fun: (lucre.synth.Server) ⇒ Unit)(implicit tx: Txn): 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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )