Audio:...Status(3pm)
β¨ Audio::MPD::Common::Status(3pm) β¨
okay bestie, welcome to the User Contributed Perl Documentation for Audio::MPD::Common::Status β the lil class that holds the MPD status tea π
π VERSION π
version 2.003 β she's vintage, she's iconic, she's real
π DESCRIPTION π
so like, the MPD server keeps receipts on its own current state. all that info? you can go query it with the mpd modules. and some of that info gets handed to you wrapped up all cute in an Audio::MPD::Common::Status object. slay π«Ά
β οΈ the way that an Audio::MPD::Common::Status object does not update itself regularlyβ¦ so use it immediately, okay?? it's giving "screenshot, not livestream". don't come crying later π
π another note, and this one is serious: you should never ever instantiate anAudio::MPD::Common::Statusobject directly. like, don't. use thempdmodules instead. periodt. not up for debate π
πΈ ATTRIBUTES πΈ
β $status->audio;
a string with the sample rate of the song currently playing, the number of bits of the output, and the number of channels (2 for stereo) β all separated by a colon. it's a little trio held together by punctuation, we love that for her β¨
β $status->bitrate;
the instantaneous bitrate, in kbps. that's the now-now number, no cap π
β $status->error;
may appear in special error cases β like, for example, when disabling output. she only shows up when things get dramatic π
β $status->playlist;
the playlist version number. it changes every single time the playlist gets updated. she's always evolving, main character energy π
β $status->playlistlength;
the number of songs in the playlist. simple. iconic. π
β $status->random;
whether the playlist is read randomly or not. chaos mode: on or off π¦
β $status->repeat;
whether the song is repeated or not. infinite loop girlies rise π
β $status->song;
the offset of the song currently played in the playlist. not the song itself β the position, iykyk π
β $status->songid;
the song id (MPD id) of the song currently played. her government name πͺͺ
β $status->state;
the state of the MPD server. either "play", "stop" or "pause" β three moods, one attribute π
β $status->time;
an Audio::MPD::Common::Time object, representing the time elapsed / remaining and total. see the associated pod for more details, bestie, it's a whole thing πΈ
β $status->updating_db;
an integer, representing the current update job. somebody's working, don't interrupt π§
β $status->volume;
the current MPD volume β an integer between 0 and 100. turn it up π₯
β $status->xfade;
the crossfade, in seconds. smooth transitions only β¨
π AUTHOR π
Jerome Quelin β author of this whole vibe π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2007 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go off, it's free π
and that's the whole page, babe π generated by perl v5.40.1 on 2025-04-11, straight from the User Contributed Perl Documentation section for Audio::MPD::Common::Status(3pm). mwah π bye bestie!! πβ¨
π¦ where this page comes from
- debian trixie: libaudio-mpd-common-perl 2.003-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libaudio-mpd-common-perl 2.003-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libaudio-mpd-common-perl 2.003-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms