[ / / / / / / / / / / / / / ] [ dir / abdl / animu / asmr / cafechan / doomer / leftpol / sw / vg ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Email
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

Happy GNU/Year!

File (hide): 794fe1bf0c31079⋯.jpg (19.58 KB, 480x360, 4:3, theman.jpg) (h) (u)

[–]

 No.1015388>>1015392 >>1015400 >>1015411 >>1015436 >>1015658 >>1015723 >>1016402 [Watch Thread][Show All Posts]

Relatively new to linuxfaggotry and here goes the question: Why would anyone use a music player daemon over a regular music player? Are there any real advantages besides suckless memery?

 No.1015392>>1015427

>>1015388 (OP)

To play songs in the background without having to maintain a "foreground" instance of the program?


 No.1015396

Why would anyone use linux over a regular OS? Are there any real advantages besides suckless memery?


 No.1015400

>>1015388 (OP)

because neckbeards wanna look 1337


 No.1015411

>>1015388 (OP)

You can use different frontends I guess.


 No.1015427>>1015723

>>1015392

mpv <file> @ disown


 No.1015429>>1015430

Music streaming. I can setup a server with my playlist and access it at any device in my home network and even over the Internet.


 No.1015430

>>1015429

This is the only real reason, but some people just do it to use their 1337 mpd terminal clients.


 No.1015433

I fell for the meme, liked it, and now am used to it.

Though, it integratee well with other programs if you add middleware, like adding some mpc commands to your WM's init file


 No.1015436>>1015527

>>1015388 (OP)

>don't have media controls on my keyboard

>want to bind mod+a or whatever combination to play or pause music

>can just simply use a command line interface to speak to the daemon

it's convenient and flexible.


 No.1015527>>1015632

>>1015436

Or I could use a GUI interface designed in the last 20 years that lets me play music with single clicks, rather than commands.


 No.1015632

>>1015527

>start mpd at boot

>$mod + m

>music instantly starts playing on shuffle

>launch terminal mpd client that takes less than 3 seconds to start later when I want to play something specific

vs

>drag mouse to corner of screen and double click icon

>wait 10 seconds for bloated music player to start up

>drag mouse somewhere else and double click to start playing

gr8 b8 m8


 No.1015658

>>1015388 (OP)

Personal preference I suppose, but most of the terminal ones don't have plugin support so playing esoteric file formats become impossible.


 No.1015665>>1015723 >>1015731

>Why would anyone use a music player daemon over a regular music player?

Because autism. There's an old meme about making software as a server with separate GUI that connects to it, so you can make a CLI as well as a GUI and easily swithc between them. The entire point is literally

>muh decoupling

but after implementing a million lines of code to make a serialization protocol and to launch shit in the proper context with proper permissiosn, and all kinds of other insane UNIX shit, it just ends up worse off than a normal program


 No.1015666

>launch terminal mpd client that takes less than 3 seconds to start later when I want to play something specific

are you the dickfuck that's making all my software take literal seconds to do anything? and no: there's nothing bloated about normal software. it's bloated because it's bloated, not because it doesn't have a daemon design...


 No.1015671>>1015733

I use mpd because most tools support it. You want a GUI? There's a dozen. A TUI? Another dozen. A CLI tool to query the current song, skip to the next or add something to the playlist? It's all there. If you use any player that doesn't support mpd you lose all the conveniences of a large ecosystem. But if that's what you want go for it.


 No.1015723>>1015747

>>1015388 (OP)

It 'just werks' no matter what frontend I use.

>>1015427

>no playlists

>have to kill a process to stop it

lol

>>1015665

It literally just streams binary to a network port.

No special code required.


 No.1015731>>1015747

>>1015665

>I can't into simple socket programming

It's just a file!


 No.1015733>>1015734

>>1015671

Doesn't mpd have some retarded design where all your songs have to be in one folder?


 No.1015734

>>1015733

Yes. Not a problem for me, but you can circumvent it with symlinks.


 No.1015745

Because X.org is so unstable


 No.1015747>>1015762 >>1015833

>>1015723

>It literally just streams binary to a network port.

point_over_head.jpg

>No special code required.

fucking what.

>>1015731

>It's just a file

Which means:

-You have to invent a serialization format. Or pick an existing piece of shit like JSON, which means you have to grab a JSON library, but they're all shit so you grab some special snowflake library and every single package on your system has a different JSON library, and they're all subtly incompatible with each other.

-You have to make up a formal rules for your protocol

-You have to name it even though it's not worth making a name for, and this name has to avoid collisions in a global namespace which you have no control over.

-You're subject to all kinds of retarded nuances due to UNIX braindamage, like race conditions, permissions, whether you flush data to the file correctly (depends on what type of file).

All this to get the current track playing and a playlist and position within that list so then you can continue on to display it in your retarded UNIX+OOP GUI framework.

Let's contrast this to normal software:

song = current_song()

for (artist,album,track) in playlist:

add_track_to_gui(artist,album,track)


 No.1015762

>>1015747

muh unix muh perfect everything is a file and totally minimal muh it just werks


 No.1015833>>1016231

>>1015747

>-You have to invent a serialization format. Or pick an existing piece of shit like JSON, which means you have to grab a JSON library, but they're all shit so you grab some special snowflake library and every single package on your system has a different JSON library, and they're all subtly incompatible with each other.

Or just use a language like TCL where serialization is given. Even in C, it's not hard to use htobe32 and co while sending strings prefixed by their length or just find a suitable end marker (you have ASCII US and RS for that). You're really making it look complicated when it's not.

>-You have to make up a formal rules for your protocol

How is that hard?

>-You have to name it even though it's not worth making a name for, and this name has to avoid collisions in a global namespace which you have no control over.

You don't, actually. Just pass /tmp/mysoft.XXXXXX to mktempd and put your socket in it (yeah, too bad there's not a mktemp for every file type).

>-You're subject to all kinds of retarded nuances due to UNIX braindamage, like race conditions

How is that limited to UNIX?

>permissions

How is that "braindamage"?

>whether you flush data to the file correctly (depends on what type of file).

Your only good point.

>All this to get the current track playing and a playlist and position within that list so then you can continue on to display it in your retarded UNIX+OOP GUI framework.

The point of this is that you can avoid the retarded GUI framework and just let it play in the background, unlike your traditional bloated GUI that serves no purpose. In fact, you don't need a GUI nor a TUI for playing music.

1/10, the original UNIX Hater retard is more entertaining, git gud.


 No.1016231

>>1015833

>the original UNIX Hater retard

What? There are multiple now?

The new one is the one without the quote box, right?


 No.1016381

My ISP is blocking 8ch, and doesn't let me change DNS on the router, is a VPN the only way?


 No.1016402

>>1015388 (OP)

If you have a home server, you can serve yourself music wherever you are, without needing the music on the device you're using.




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
26 replies | 0 images | Page ?
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / abdl / animu / asmr / cafechan / doomer / leftpol / sw / vg ][ watchlist ]