hfujita / pulseaudio-raop2

Experimental RAOP2 (Apple AirPlay2) support for PulseAudio
http://hfujita.github.io/pulseaudio-raop2/
Other
138 stars 19 forks source link

Denon AVR2312 detect and able to change volume but no audio. #13

Closed vDorst closed 9 months ago

vDorst commented 10 years ago

I tried today this plugin on my I3-4330 with Ubuntu 14.04 64-bits. My Denon AVR-2312 is detect and Volume does change but no audio.

(   1.005|   0.683) D: [lt-pulseaudio] module-raop-discover.c: Found RAOP: DENON:[AVR-2312]
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'txtvers' with value: '1'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'ch' with value: '2'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'cn' with value: '0,1'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'et' with value: '0,4'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'sv' with value: 'false'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'da' with value: 'true'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'sr' with value: '44100'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'ss' with value: '16'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'pw' with value: 'false'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'vn' with value: '65537'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'tp' with value: 'UDP'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'md' with value: '0,1,2'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'vs' with value: '103.2'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'am' with value: 'DENON,1'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Found key: 'fv' with value: '65.9200'
(   1.005|   0.000) D: [lt-pulseaudio] module-raop-discover.c: Loading module-raop-sink with arguments 'server=[192.168.10.20]:1036 sink_name=raop_output.DENON-AVR-2312.local
(   1.008|   0.002) D: [lt-pulseaudio] module-device-restore.c: Database contains invalid data for key: sink:raop_output.DENON-AVR-2312.local (probably pre-v1.0 data)
(   1.008|   0.000) D: [lt-pulseaudio] module-device-restore.c: Attempting to load legacy (pre-v1.0) data for key: sink:raop_output.DENON-AVR-2312.local
(   1.008|   0.000) D: [lt-pulseaudio] module-device-restore.c: Size does not match.
(   1.008|   0.000) D: [lt-pulseaudio] module-device-restore.c: Unable to load legacy (pre-v1.0) data for key: sink:raop_output.DENON-AVR-2312.local. Ignoring.
(   1.008|   0.000) D: [lt-pulseaudio] module-device-restore.c: Database contains invalid data for key: sink:raop_output.DENON-AVR-2312.local:null
(   1.008|   0.000) I: [lt-pulseaudio] sink.c: Created sink 1 "raop_output.DENON-AVR-2312.local" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
(   1.008|   0.000) I: [lt-pulseaudio] sink.c:     device.string = "[192.168.10.20]:1036"
(   1.008|   0.000) I: [lt-pulseaudio] sink.c:     device.intended_roles = "music"
(   1.008|   0.000) I: [lt-pulseaudio] sink.c:     device.description = "DENON:[AVR-2312]"
(   1.008|   0.000) I: [lt-pulseaudio] sink.c:     device.icon_name = "audio-card"
(   1.008|   0.000) D: [lt-pulseaudio] core-subscribe.c: Dropped redundant event due to change event.

But format.rate = "25" sounds a bit strange.

( 496.863|   0.000) D: [lt-pulseaudio] source-output.c: Negotiated format: pcm, format.sample_format = "\"float32le\""  format.rate = "25"  format.channels = "1"  format.channel_map = "\"mono\""

Full PulseAudio log https://gist.github.com/vDorst/cb4e5456ddf416e41295

This is the first time I am using this. Any idea where too look for?

vDorst commented 10 years ago

I did merge the code with PulseAudio v5.0 Here an extra logging. https://gist.github.com/vDorst/89a333a63b773c3f8815

trying to play mp3 with mplayer

cubox@Thirsty:/usr/src/raop2$ mplayer /media/Storage/Music/Download/Zomerhits\ In\ De\ Mix\ 2011/101-va-100_lekkerste_zomerhits_in_de_mix_2011_cd1.mp3
MPlayer 1.1-4.8 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /media/Storage/Music/Download/Zomerhits In De Mix 2011/101-va-100_lekkerste_zomerhits_in_de_mix_2011_cd1.mp3.
libavformat version 54.20.4 (external)
Mismatching header version 54.20.3
Audio only file format detected.
Clip info:
 Title: 100 Lekkerste Zomerhits In De
 Artist: V.A.
 Album: 100 Lekkerste Zomerhits In De
 Year: 2011
 Comment: DutchReleaseTeam By Ari
 Track: 1
 Genre: Dance
Load subtitles in /media/Storage/Music/Download/Zomerhits In De Mix 2011/
==========================================================================
Requested audio codec family [mpg123] (afm=mpg123) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 54.35.0 (external)
AUDIO: 44100 Hz, 2 ch, floatle, 250.5 kbit/8.87% (ratio: 31307->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
Video: no video
Starting playback...
A:   0.0 (00.0) of 4665.0 ( 1:17:45.0) ??,?%
Audio device got stuck!
A:   0.0 (00.0) of 4665.0 ( 1:17:45.0) ??,?%
vDorst commented 10 years ago

Data will be send when I change the input of the Denon like AirPlay->Some Other Input->AirPlay.

PulseLog: https://gist.github.com/vDorst/490ec8d574d4b7521ac0

vDorst commented 10 years ago

On My Denon it won't play so well. Changing the audio input don't not really did the trick. Pulseaudio streams data but my Denon do strangs things. HDMI output gets out of sync and still no audio. Seems like a bufferoverrun in the Denon.

vDorst commented 10 years ago

After resetting and some more testen. It is working. But it takes a while from start to play audio.

I also noticed that the volume is set to almost MAX. Even if I manually disables this in the sourcecode, By disabling this line https://github.com/hfujita/pulseaudio-raop2/blob/raop2-for-merge2/src/modules/raop/raop_client.c#L1411.

glance- commented 8 years ago

I just tested current master against my Denon AVR 1912, and it worked great.

There is no feedback from changing volume or pressing buttons on the denon remote to pulseaudio, but commands sent from pulseaudio works just great. Audio plays and volume changes work.

hfujita commented 8 years ago

@glance- Glad to hear that! Remotes won't work unless #2 is implemented.