Audio:...Status(3pm)

πŸ“¦
version 2.003 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ 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 an Audio::MPD::Common::Status object directly. like, don't. use the mpd modules 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 🫢


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