First of all sorry, i'm new to linux, so this could be trivial issue or not connected to moc at all
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial
$ mocp --version
This is : Music On Console
Version : 2.6-alpha1
Built : Jan 10 2016 17:13:40
Compiled with : OSS ALSA JACK DEBUG Network streams resample
Running on : Linux 4.13.0-31-generic x86_64
Author : Damian Pietras
Homepage : http://moc.daper.net/
E-Mail : mocmaint@daper.net
Copyright : (C) 2003-2014 Damian Pietras and others
License : GNU General Public License, version 2 or later
Currently i have sound in all applications i'm using frequently except moc: firefox (youtube), zoom. Problem pop up after i enable "Never prompt or start programs on media insertion" ubuntu setting (system settings > details > removable media)
There are no errors when i start moc and start playing. Looks like moc is just using wrong device. "Sound settings" show that applications list is empty. Been trying different configs with no result
https://askubuntu.com/questions/808910/moc-console-audio-player-produces-no-sound-but-no-errors-either
https://fullcirclemagazine.org/moc-config/
mocp -SF
May 30 12:33:22.599247: main.c:1207 main(): This is Music On Console (version 2.6-alpha1)
May 30 12:33:22.599306: main.c:1211 main(): Configured: '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' '--disable-maintainer-mode' '--disable-dependency-tracking' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic' 'LDFLAGS=-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed' 'CPPFLAGS=-D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security'
May 30 12:33:22.599326: main.c:1221 main(): Running on: Linux 4.13.0-31-generic x86_64
May 30 12:33:22.600170: main.c:1173 log_command_line(): mocp -SF
May 30 12:33:22.600251: main.c:1187 log_popt_command_line(): mocp --server --foreground
May 30 12:33:22.611866: ffmpeg.c:1509 plugin_init(): Using avcodec_decode_audio4()
May 30 12:33:22.615385: decoder.c:675 load_plugins(): Loaded 12 decoders: aac ffmpeg flac modplug mp3 musepack opus sidplay2 sndfile speex vorbis wavpack
May 30 12:33:22.615404: server.c:325 server_init(): Starting MOC Server
May 30 12:33:22.615436: log.c:231 log_init_stream(): Writing log to: stdout
May 30 12:33:22.615480: server.c:295 log_process_stack_size(): Process's stack size: 8388608
May 30 12:33:22.615487: server.c:312 log_pthread_stack_size(): PThread's stack size: 8388608
Trying ALSA...
May 30 12:33:22.615503: alsa.c:297 alsa_init(): Initialising ALSA device: sysdefault
May 30 12:33:22.623024: alsa.c:283 alsa_init_mixer_channel(): Opened mixer (PCM), volume range: 0-255
May 30 12:33:22.623037: alsa.c:283 alsa_init_mixer_channel(): Opened mixer (Master), volume range: 0-64
May 30 12:33:22.630282: audio.c:938 print_output_capabilities(): Sound driver capabilities: channels 1 - 10000, formats: 8-bit signed, 8-bit unsigned, 16-bit signed, 16-bit unsigned, 24-bit signed (as 32-bit samples), 24-bit unsigned (as 32-bit samples) little-endian (native)
May 30 12:33:22.630294: audio.c:955 audio_initialize(): Disabling 24bit modes because Allow24bitOutput is set to no.
May 30 12:33:22.630355: out_buf.c:103 read_thread(): entering output buffer thread
May 30 12:33:22.631029: softmixer.c:59 softmixer_init(): Softmixer initialized
May 30 12:33:22.632011: equalizer.c:509 equalizer_init(): Equalizer initialized
May 30 12:33:22.632092: tags_cache.c:667 reader_thread(): Tags reader thread started
May 30 12:33:22.632103: tags_cache.c:692 reader_thread(): All queues empty, waiting
May 30 12:33:22.633730: server.c:1710 server_loop(): MOC server started, pid: 21119
May 30 12:33:35.589778: server.c:1740 server_loop(): accept()ing connection...
May 30 12:33:35.589826: server.c:1747 server_loop(): Incoming connection
May 30 12:33:35.589841: tags_cache.c:873 tags_cache_clear_queue(): Cleared requests queue for client 0
May 30 12:33:35.589957: server.c:1196 gen_serial(): Generated serial 0 for client with fd 9
May 30 12:33:35.595604: server.c:1527 handle_command(): Request for events
May 30 12:33:35.595645: server.c:946 get_client_plist(): Client with fd 9 requests the playlist
May 30 12:33:35.595661: server.c:956 get_client_plist(): No clients with the playlist
May 30 12:33:35.597425: server.c:201 client_lock(): Lock acquired for client with fd 9
May 30 12:33:35.597452: server.c:1145 plist_sync_cmd(): Sending EV_PLIST_CLEAR
May 30 12:33:35.597462: server.c:254 wake_up_server(): Waking up the server
May 30 12:33:35.597476: server.c:1755 server_loop(): Got 'wake up'
May 30 12:33:35.597486: server.c:681 send_events(): Flushing events for client 0
May 30 12:33:35.597502: server.c:1106 plist_sync_cmd(): Sending EV_PLIST_ADD
May 30 12:33:35.597531: server.c:254 wake_up_server(): Waking up the server
May 30 12:33:35.597544: server.c:1755 server_loop(): Got 'wake up'
May 30 12:33:35.597554: server.c:681 send_events(): Flushing events for client 0
May 30 12:33:35.597568: server.c:1106 plist_sync_cmd(): Sending EV_PLIST_ADD
May 30 12:33:35.597596: server.c:254 wake_up_server(): Waking up the server
May 30 12:33:35.597608: server.c:1755 server_loop(): Got 'wake up'
May 30 12:33:35.597616: server.c:681 send_events(): Flushing events for client 0
May 30 12:33:35.597630: server.c:1106 plist_sync_cmd(): Sending EV_PLIST_ADD
May 30 12:33:35.597656: server.c:254 wake_up_server(): Waking up the server
May 30 12:33:35.597668: server.c:1755 server_loop(): Got 'wake up'
May 30 12:33:35.597680: server.c:681 send_events(): Flushing events for client 0
May 30 12:33:35.597697: server.c:1106 plist_sync_cmd(): Sending EV_PLIST_ADD
May 30 12:33:35.597731: server.c:254 wake_up_server(): Waking up the server
May 30 12:33:35.597747: server.c:1755 server_loop(): Got 'wake up'
May 30 12:33:35.597757: server.c:681 send_events(): Flushing events for client 0
May 30 12:33:35.597775: server.c:1106 plist_sync_cmd(): Sending EV_PLIST_ADD
May 30 12:33:35.597848: server.c:254 wake_up_server(): Waking up the server
May 30 12:33:35.597863: server.c:1755 server_loop(): Got 'wake up'
May 30 12:33:35.597872: server.c:681 send_events(): Flushing events for client 0
May 30 12:33:35.597885: server.c:1106 plist_sync_cmd(): Sending EV_PLIST_ADD
May 30 12:33:35.597917: server.c:254 wake_up_server(): Waking up the server
May 30 12:33:35.597930: server.c:1755 server_loop(): Got 'wake up'
May 30 12:33:35.597940: server.c:681 send_events(): Flushing events for client 0
May 30 12:33:35.597956: server.c:220 client_unlock(): Lock released by client with fd 9
May 30 12:33:35.601069: server.c:1062 req_send_queue(): Client with fd 9 wants queue... sending it
May 30 12:33:35.601090: server.c:1095 req_send_queue(): Queue sent
May 30 12:33:57.220578: server.c:201 client_lock(): Lock acquired for client with fd 9
May 30 12:33:57.220699: server.c:1196 gen_serial(): Generated serial 256 for client with fd 9
May 30 12:33:57.220799: server.c:1196 gen_serial(): Generated serial 512 for client with fd 9
May 30 12:33:57.220885: server.c:1173 req_plist_set_serial(): Setting the playlist serial number to 512
May 30 12:33:57.220929: server.c:1434 handle_command(): Clearing the list
May 30 12:33:57.220988: server.c:722 req_list_add(): Adding 'http://mp3channels.webradio.de:80/rockantenne' to the list
May 30 12:33:57.221068: server.c:722 req_list_add(): Adding 'http://mp3channels.webradio.antenne.de:80/rockantenne' to the list
May 30 12:33:57.221155: server.c:722 req_list_add(): Adding 'http://radio02-cn03.akadostream.ru:8114/rockfm128.mp3' to the list
May 30 12:33:57.221216: server.c:722 req_list_add(): Adding 'http://stream.radioreklama.bg:80/radio1rock64' to the list
May 30 12:33:57.221277: server.c:722 req_list_add(): Adding 'http://ample-14.radiojar.com:80/xgbg3anx3zquv' to the list
May 30 12:33:57.221338: server.c:722 req_list_add(): Adding 'http://ic7.101.ru:8000/a25?' to the list
May 30 12:33:57.221402: server.c:773 req_play(): Playing http://radio02-cn03.akadostream.ru:8114/rockfm128.mp3
May 30 12:33:57.221546: server.c:220 client_unlock(): Lock released by client with fd 9
May 30 12:33:57.221707: audio.c:416 play_thread(): Entering playing thread
May 30 12:33:57.221738: audio.c:434 play_thread(): Playing item 2: http://radio02-cn03.akadostream.ru:8114/rockfm128.mp3
May 30 12:33:57.221760: server.c:254 wake_up_server(): Waking up the server
May 30 12:33:57.222235: server.c:1755 server_loop(): Got 'wake up'
May 30 12:33:57.222365: server.c:681 send_events(): Flushing events for client 0
May 30 12:33:57.222401: decoder.c:301 get_decoder_by_content(): Testing the stream...
May 30 12:33:57.222520: io.c:358 io_read_thread(): IO read thread created
May 30 12:33:57.222552: io_curl.c:593 io_curl_read(): Read 0 bytes from the buffer (0 bytes full)
May 30 12:33:57.222572: io_curl.c:327 curl_read_internal(): Starting curl...
May 30 12:33:57.222867: io_curl.c:350 curl_read_internal(): Doing pselect()...
tangens
Thu, 2019-05-30 17:50
Permalink
found solution using config
found solution using config /usr/share/doc/moc/examples/config.example.gz
guinasso
Tue, 2019-06-11 03:12
Permalink
solution
What solution did you find?
What did you uncomment?