ALSAPLAYER(1)

๐Ÿ“ฆ
version 0.99.82 ยท 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

โœจ ALSAPLAYER(1) ๐Ÿ’–

Okay bestie, welcome to ALSAPLAYER(1), the General Commands Manual entry for alsaplayer ๐ŸŽง Let's get into it! Main character energy only ๐Ÿ’…


๐ŸŒธ NAME ๐ŸŒธ

alsaplayer โ€” plays all kinds of sound files ๐ŸŽถ

๐ŸŽ€ SYNOPSIS ๐ŸŽ€

alsaplayer [options] [ filename ...]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

Okay so this is a quick overview of the alsaplayer command. It was written for Debian GNU/Linux because the original program doesn't come with its own manual page ๐Ÿฅบ

alsaplayer is a total all-rounder music player. It can play back a huge pile of file formats, no cap ๐Ÿ”ฅ

If you pass files on the command line, those are the ones that get played. If you don't, alsaplayer picks up the playlist from its last run (if it has one) ๐ŸŒˆ

๐ŸŽต FILENAME ๐ŸŽต

Plays the file(s) you name. Each one can be a file or a URL โœจ

  • CD.cdda โ€” a special filename for playing a CD ๐Ÿ’ฟ It uses /dev/cdrom by default. Otherwise, AlsaPlayer uses the device set in your config file (usually ~/.alsaplayer/config).

๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

These programs follow the usual GNU command line style, so long options start with two dashes (--). Here's the summary, bestie ๐Ÿ’œ

  • -c, --config <file> โ€” Uses the given config file for this session.
  • -h, --help โ€” Prints the help message.
  • -i, --interface <interface> โ€” Uses the specified interface instead of the default one.
  • -I, --script <file> โ€” Specifies the script to pass to the interface plugin.
  • -l, --startvolume <vol> โ€” Starts with this volume [default=1.0].
  • -p, --path <path> โ€” Sets the path alsaplayer looks in for add-ons.
  • -q, --quiet โ€” Quiet operation, no output ๐Ÿคซ
  • -s, --session-name name โ€” Names this session "name".
  • -v, --version โ€” Prints the version of this program.
  • --verbose โ€” Makes the output extra chatty.
  • --nosave โ€” Doesn't save the playlist content when you exit.

๐ŸŽฎ Player control: ๐ŸŽฎ

  • -n, --session # โ€” Selects session # [default=0].
  • -e, --enqueue file(s) โ€” Enqueues file(s) in a running alsaplayer.
  • -E, --replace file(s) โ€” Clears the playlist, then queues file(s) in a running alsaplayer.
  • --status โ€” Gets some info about the session.
  • --volume # โ€” Sets the software volume [0.0-1.0].
  • --start โ€” Starts playing.
  • --stop โ€” Stops playing.
  • --pause โ€” Pauses or unpauses playing.
  • --prev โ€” Jumps to the previous track.
  • --next โ€” Jumps to the next track.
  • --seek <second> โ€” Jumps to the specified second in the current track.
  • --relative <second> โ€” Jumps <second> seconds from the current position.
  • --speed <value> โ€” Sets the playback speed with -10 <= <value> <= 10. 1.0 is normal speed, and -1.0 is normal speed backwards. Be aware that alsaplayer respects your LOCALE, so the decimal point changes accordingly. For example, with a french LOCALE, a valid speed is 1,5 and not 1.5 ๐Ÿ™ˆ
  • --jump # โ€” Jumps to the specified playlist track.
  • --loopsong <on|off> โ€” Switches file looping on or off [default off].
  • --looplist <on|off> โ€” Switches playlist looping on or off [default off].
  • -S, --shuffle โ€” Shuffles the playlist ๐Ÿ”€
  • --clear โ€” Clears the whole playlist.
  • --quit โ€” Quits the session.

๐Ÿ”Š Sound driver options: ๐Ÿ”Š

  • -d, --device string โ€” Selects the specific device for the output plugin. For the ALSA plugin, the default is "default". For the JACK plugin, the default is "alsa_pcm:playback_1,alsa_pcm:playback_2".
  • -f, --fragsize # โ€” Sets the fragment size in bytes [default=4096].
  • -F, --frequency # โ€” Sets the output frequency [default=44100].
  • -g, --fragcount # โ€” Sets the fragment count [default=8].
  • -r, --realtime โ€” Enables realtime scheduling. To use this as a normal user, alsaplayer must be SUID root โš ๏ธ
  • -o, --output [alsa|esound|jack|nas|null|oss|sgi|sparc] โ€” Uses the specified output driver.

๐Ÿงช Experimental options: ๐Ÿงช

  • -x,--crossfade โ€” Crossfades playlist entries.

๐ŸŽ›๏ธ JACK OUTPUT PLUGIN ๐ŸŽ›๏ธ

For JACK, -F <sample_rate> is mandatory for the best results. The sample rate value must be the same one used by jackd.

If you forget the -F parameter, the sound can be very bad. The only remedy at that point is to restart both jackd and AlsaPlayer. ๐Ÿ’€

๐Ÿงš DAEMON INTERFACE ๐Ÿงš

With the daemon interface, you have to add the -s option. It's mandatory, no skipping! You'll need two steps to get sound. First, launch the daemon:

alsaplayer -i daemon -s <name>

Then add a song:

alsaplayer -e <some.song>

โŒจ๏ธ GTK+ INTERFACE โŒจ๏ธ

The gtk+ interface comes with some basic keyboard controls ๐Ÿ’…

  • v โ€” Stop
  • x โ€” Play
  • c โ€” Pause
  • b โ€” Next Song
  • z โ€” Previous Song
  • g โ€” Seek Forward
  • a โ€” Seek Backward
  • f โ€” Forward Play
  • s โ€” Reverse Play
  • t โ€” Speed Up one musical semitone. (Handy for changing the key the song is played back in ๐ŸŽน)
  • q โ€” Speed Down one musical semitone.
  • h โ€” Speed Up one comma. (Handy for tuning the song to you instead of the guitar when you're playing along and listening at the same time ๐ŸŽธ)
  • i โ€” Speed Down one comma.
  • r โ€” Volume Up
  • w โ€” Volume Down
  • l โ€” Loop

โš™๏ธ PREFERENCES โš™๏ธ

AlsaPlayer has a preferences file at ~/.alsaplayer/config. If you want to change settings by hand, you have to exit the running program and edit this file. The default value is listed in each description when it's relevant ๐Ÿซถ

๐ŸŒท General settings ๐ŸŒท

  • main.default_interface=gtk2 โ€” Specifies the default interface.
  • main.default_output=alsa โ€” Specifies the default sound server.
  • main.multiopen=true โ€” Specifies whether you can run multiple AlsaPlayer instances.
  • main.period_count=8 โ€” Number of periods in the sound buffer.
  • main.period_size=4096 โ€” Frames per period in the sound buffer.
  • main.play_on_start=false โ€” Starts playing at launch time.

๐Ÿ”Œ Output settings ๐Ÿ”Œ

  • jack.output1=alsa_pcm:playback_1 โ€” Output device 1 when using the JACK sound server.
  • jack.output2=alsa_pcm:playback_2 โ€” Output device 2 when using the JACK sound server.

๐Ÿ’ฟ Input settings ๐Ÿ’ฟ

  • cdda.cddb_servername=freedb.freedb.org โ€” The server the cdda input module uses to retrieve cddb information.
  • cdda.cddb_serverport=80 โ€” The port the cdda input module uses to retrieve cddb information.
  • cdda.device=/dev/cdrom โ€” The device the cdda input module uses to retrieve the CD.
  • cdda.do_cddb_lookup=true โ€” Whether AlsaPlayer retrieves cddb information or not.
  • http.buffer_size=1048576 โ€” Size of the input buffer when <filename> is a URL.
  • mad.parse_id3=true โ€” Whether or not to parse the Id3 tags.

๐ŸชŸ GTK+ interface settings ๐ŸชŸ

  • gtk2_interface.background_colour=#000000 โ€” Default background color of the interface. The playlist windows use the background color from your gtk+ theme.
  • gtk2_interface.default_play_path=~/ โ€” Default path used by the Add file function.
  • gtk2_interface.default_playlist_add_path=/ โ€” Default path used by the Add file function in the Playlist window.
  • gtk2_interface.default_playlist_load_path=/ โ€” Default path used by the Load playlist function.
  • gtk2_interface.default_playlist_save_path=/ โ€” Default path used by the Save playlist function.
  • gtk2_interface.font_colour=#ffffff โ€” Default font color of the interface. The playlist windows use the font color from your gtk+ theme.
  • gtk2_interface_font= โ€” Default font of the interface. The playlist windows use the font from your gtk+ theme. The main window also uses that font if none is specified.
  • gtk2_interface.height=118 โ€” Default height of the interface.
  • gtk2_interface.loop=0 โ€” Starts in loop mode.
  • gtk2_interface.play_on_add=false โ€” Jumps to playing a new song when it's added.
  • gtk2_interface.play_on_title=false โ€” Shows the song title in the title bar.
  • gtk2_interface.playlist_active=false โ€” Launches the playlist window at startup or not.
  • gtk2_interface.playlist_height=0 โ€” Default height of the playlist window. This value combined with the default value of gtk2_interface.height corresponds to no visible playlist.
  • gtk2_interface.sopeswindow_active=false โ€” Launches the scopes selector window at startup or not.
  • gtk2_interface.smooth_transition=false โ€” Whether functions such as pause use a smooth speed transition.
  • gtk2_interface.width=529 โ€” Width of the interface.

๐ŸŒˆ XOSD interface settings ๐ŸŒˆ

  • xosd_interface.color=#55ff55 โ€” Colour used by the XOSD interface.
  • xosd_interface.outline_color=black โ€” Colour used by the XOSD interface outline. Colors can be given in hexadecimal notation prefixed by #, or by their name as listed in the rgb.txt file from your X11 distribution.
  • xosd_interface.font=-adobe-helvetica-medium-r-normal-*-24-*-*-*-*-*-*-*
  • xosd_interface.shadow=1 โ€” Shadow offset.
  • xosd_interface.outline_offset=1 โ€” How wide the outline is.
  • xosd_interface.h_offset=20 โ€” Horizontal offset of the display from the left of the screen.
  • xosd_interface.timeout=5 โ€” Sets how long the display stays up.
  • xosd_interface.v_offset=20 โ€” Vertical offset of the display from the top of the screen.

๐Ÿ“Š Scopes settings ๐Ÿ“Š

  • blurscope.active=false โ€” Launches the blurscope plugin at startup or not.
  • fftscope.active=false โ€” Launches the fftscope plugin at startup or not.
  • levelmeter.active=false โ€” Launches the levelmeter scope plugin at startup or not.
  • logbarfft.active=false โ€” Launches the logbar scope plugin at startup or not.
  • monoscope.active=false โ€” Launches the monoscope scope plugin at startup or not.
  • opengl_spectrum.active=false โ€” Launches the spectrumgl scope plugin at startup or not.
  • opengl_spectrum.height=480 โ€” Height of the spectrumgl scope plugin.
  • opengl_spectrum.width=640 โ€” Width of the spectrumgl scope plugin.
  • spacescope.active=false โ€” Launches the spacescope plugin at startup or not.
  • synaescope.active=false โ€” Launches the synaescope plugin at startup or not.

๐Ÿ“š SEE ALSO ๐Ÿ“š

mikmod(1), mpg123(1).

๐Ÿ’Œ AUTHOR ๐Ÿ’Œ

This manual page was written by Ivo Timmermans <ivo@debian.org>, for the Debian GNU/Linux system (but anyone can use it). The FILENAME, GTK, DAEMON INTERFACE and PREFERENCES sections were added by Dominique Michel <dominique_libre@sourceforge.net> from the Alsaplayer team ๐Ÿซถ


That's the tea, bestie! ๐Ÿ“ This page was last updated on 29 March 2008, and ALSAPLAYER(1) is signing off with love ๐Ÿ’œโœจ

๐Ÿ“ฆ where this page comes from