NAME

PulseAudio::Types

DESCRIPTION

This module provides PulseAudio types using MooseX::Types. All types have both an is_ and to_ shorthand per MooseX::Types.

Types provided

PA_Volume

This type coerces from percents '50%' and from the shorthands MAX, HALF, MUTE (0), and MIN (0).

PA_Bool

Simple type coerces from on/off/true/false/y*/n*.

PA_Index

Takes an int, or an object that has an index attribute (like PulseAudio::Sink and PulseAudio::Source) resolving to the index stored in the attribute.