karawin / Ka-Radio32

esp32 version of Ka-Radio (https://github.com/karawin/Ka-Radio) by jp Cocatrix
516 stars 155 forks source link

SPDIF output #175

Closed Vasilis-7 closed 3 years ago

Vasilis-7 commented 4 years ago

I am thinking the possibility to add it on my home amplifier set. Is it possible, to add an SPDIF output ? In order to have the best audio result i think the digital way is better than the analog.

r3d4 commented 4 years ago

It would be great to have SPDIF output. Maybe something like this Software-SPDIF would be possible: https://github.com/earlephilhower/ESP8266Audio/blob/master/src/AudioOutputSPDIF.cpp

This would allow high quality playback with almost no additional hardware needed.

r3d4 commented 4 years ago

I ported the SPDIF algorithm from ESP8266Audio to Ka-Radio32 and created a pull request: https://github.com/karawin/Ka-Radio32/pull/176 It only needs an optical Transmitter at the I2S data pin (or even a LED + resistor might work). Tested it with 44.1 an 48KHz for 2 days, works quite well.

r3d4 commented 4 years ago

I reworked (deleted) SPDIF branch an created new pull request: https://github.com/karawin/Ka-Radio32/pull/178

karawin commented 4 years ago

I tried to merge, but conflict with the working change. I had to revert. Please work on it now. Sorry.

marcinmaster999 commented 4 years ago

Thx

I reworked (deleted) SPDIF branch an created new pull request: #178

Thx r3d4.This patch works great for 1.9.7.

r3d4 commented 4 years ago

@karawin Please ignore pull request: #176 this branch was delete by me. All necessary changes are in #178. It should work to merge #178 direct to actual master. I don't get conflicts here.

Vasilis-7 commented 3 years ago

Hi. Is it working the SPDIF out?

karawin commented 3 years ago

Done