AudioBus

trait AudioBus extends Bus with AudioRated
Companion
object
trait AudioRated
trait Bus
class Object
trait Matchable
class Any

Value members

Abstract methods

def addReader(u: User)(implicit tx: RT): Unit

Adds a reading consumer to the bus. Note that the readers are kept in a Set and this method doesn't currently check whether the set already contains the reader. Adding the same reader more than once will cause malfunction.

Adds a reading consumer to the bus. Note that the readers are kept in a Set and this method doesn't currently check whether the set already contains the reader. Adding the same reader more than once will cause malfunction.

As a consequence, the user's busChanged method is invoked with the current bus. The current bus may change due to the addition. In this case, busChanged is called on all other currently registered users.

def addWriter(u: User)(implicit tx: RT): Unit

Adds a writing consumer to the bus. Note that the writers are kept in a Set and this method doesn't currently check whether the set already contains the writer. Adding the same writer more than once will cause malfunction.

Adds a writing consumer to the bus. Note that the writers are kept in a Set and this method doesn't currently check whether the set already contains the writer. Adding the same writer more than once will cause malfunction.

As a consequence, the user's busChanged method is invoked with the current bus. The current bus may change due to the addition. In this case, busChanged is called on all other currently registered users.

def busOption(implicit tx: RT): Option[AudioBus]
def removeReader(u: User)(implicit tx: RT): Unit

Removes a reading consumer from the bus. It is safe to call this method, passing in a user which has already been previously removed.

Removes a reading consumer from the bus. It is safe to call this method, passing in a user which has already been previously removed.

The current bus may change due to the removal. In this case, busChanged is called on all remaining registered users.

def removeWriter(u: User)(implicit tx: RT): Unit

Removes a writing consumer from the bus. It is safe to call this method, passing in a user which has already been previously removed.

Removes a writing consumer from the bus. It is safe to call this method, passing in a user which has already been previously removed.

The current bus may change due to the removal. In this case, busChanged is called on all remaining registered users.

Inherited methods

def numChannels: Int
Inherited from
Bus
final
def rate: Rate
Inherited from
AudioRated
Inherited from
Bus