Comments (8)
You could try this patch.
diff --git a/flac.c b/flac.c
index 4667461..c4e8bb4 100644
--- a/flac.c
+++ b/flac.c
@@ -346,9 +346,12 @@ static bool load_flac() {
// ignore error for this new API
f->FLAC__stream_decoder_set_ogg_chaining = dlsym(handle, "FLAC__stream_decoder_set_ogg_chaining");
if (!f->FLAC__stream_decoder_set_ogg_chaining) {
+ if ((err = dlerror()) != NULL) {
+ LOG_INFO("dlerror: %s", err);
+ }
LOG_INFO("OggFlac chaining disabled");
}
-
+
LOG_INFO("loaded %s", name);
#elif !defined(FLAC__OGG_CHAINING)
LOG_INFO("OggFlac chaining disabled");
from squeezelite.
@paul-1 Thanks for tracking down the problem.
from squeezelite.
Can you upgrade your flac package to support ogg chaining?
from squeezelite.
Can you upgrade your flac package to support ogg chaining?
Is there a version that does or are you saying patch it? I haven't really been following this ogg chaining feature but there are still open PRs I see upstream for it:
from squeezelite.
1.4.3 plus this patch. https://sourceforge.net/projects/lmsclients/files/source/flac.patch
Using the updated flac would make the symbol available. It appears the musl dl loader is not happy with the way it's currently trapped.
from squeezelite.
I think the error is caused by this.
Lines 346 to 350 in c751ef1
This section traps the ogg error, but does not call dlerror(). dlerror will report whatever error occurred since it's last call. Since the next call to dlerror happens when mad is loading, that's when the error shows up. So perhaps not a musl specific problem either.
from squeezelite.
Yes, that seems to fix it!
[10:56:47.085080] register_dsd:908 using dsd to decode dsf,dff
[10:56:47.085208] load_faad:633 loaded libfaad.so.2
[10:56:47.085217] register_faad:663 using faad to decode aac
[10:56:47.085452] load_vorbis:349 loaded libvorbisfile.so.3
[10:56:47.085460] register_vorbis:378 using vorbis to decode ogg
[10:56:47.085607] load_opus:294 loaded libopusfile.so.0
[10:56:47.085614] register_opus:324 using opus to decode ops
[10:56:47.085748] load_flac:350 dlerror: Symbol not found: FLAC__stream_decoder_set_ogg_chaining
[10:56:47.085757] load_flac:352 OggFlac chaining disabled
[10:56:47.085764] load_flac:355 loaded libFLAC.so.12
[10:56:47.085771] register_flac:385 using flac to decode ogf,flc
[10:56:47.085777] register_pcm:483 using pcm to decode aif,pcm
[10:56:47.085895] load_mad:394 loaded libmad.so.0
[10:56:47.085902] register_mad:423 using mad to decode mp3
[10:56:47.085909] decode_init:202 include codecs: exclude codecs:
[10:56:47.085957] discover_server:800 sending discovery
[10:56:47.087415] alsa_open:425 opened device default using format: S32_LE sample rate: 44100 mmap: 1
[10:56:47.087440] alsa_open:516 buffer: 40 period: 4 -> buffer size: 1764 period size: 441
[10:56:47.101356] slimproto:942 connected
[10:56:47.101388] sendHELO:150 cap: CanHTTPS=1,Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Balance=1,Firmware=v2.0.0-1481,ModelName=SqueezeLite,MaxSampleRate=384000,dsf,dff,aac,ogg,ops,ogf,flc,aif,pcm,mp3
from squeezelite.
1486 tested and working, please close at your discretion. Thanks for the support @paul-1 and @ralph-irving !
from squeezelite.
Related Issues (20)
- flac and ogf streams HOT 3
- output threshold is incorrect HOT 2
- Power controls (gpio/script) tied to output device being open rather than soft power button state
- Build fails on 1466 (commit c89faf3) HOT 15
- Build error in flac.c on revision 1466 HOT 2
- Whole-album flacs with embedded cuesheet playback broken by commit c89faf3 Ogg metadata (and a bit more) HOT 11
- relay-script toggles off/on/off during start HOT 9
- Version 1476 - Error compiling on X86 and Raspberry 4 HOT 13
- Request: Create Release HOT 4
- OggFlac chaining HOT 2
- unhandled grfe HOT 4
- squeezelite-pulse sync issues
- Crash on Arch Linux
- Building on macOS does not use libraries installed by package managers HOT 5
- macOS M1 binary release Squeezelite.app is corrupted HOT 2
- Compiling: error with gpio.h HOT 3
- Meta-package squeezelite-2.0.0.1488-aarch64 HOT 1
- Squeezelite-2.0.0.1488 dont play FLAC radios
- Native DSD not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from squeezelite.