Evan Carroll > PulseAudio > PulseAudio::Types

Download:
PulseAudio-0.07.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Source  

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.

syntax highlighting: