class Eagle::Audio::Bus

Overview

A named group of voices with a shared volume and mute switch. Get one with Audio.bus.

Defined in:

eagle/audio/audio.cr

Instance Method Summary

Instance Method Detail

def gain : Float32 #

The effective volume: 0 when muted, otherwise #volume.


def muted=(muted : Bool) #

Silences the bus without losing its volume setting.


def muted? : Bool #

Silences the bus without losing its volume setting.


def volume : Float32 #

Volume for every voice on this bus.


def volume=(volume : Float32) #

Volume for every voice on this bus.


def volume=(v : Number) #

Sets #volume from any number.