The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.

PA_Name

Takes an str, or an object that has an name attribute (like PulseAudio::Samples) resolving to the index stored in the attribute.