Codebase list squeezelite / run/8fa415b0-3277-470d-8544-ee4d2731675b/main
New upstream snapshot. Debian Janitor 1 year, 4 months ago
6 changed file(s) with 23 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
+0
-6
.gitignore less more
0 .vscode/
1 *.o
2 squeezelite
3 squeezelite-pulse
4 tools/alsacap
5 tools/find_servers
0 squeezelite (1.9+git20221015.ca44fc6-1) UNRELEASED; urgency=low
0 squeezelite (1.9+git20221121.dbe69eb-1) UNRELEASED; urgency=low
11
22 * New upstream snapshot.
3 * New upstream snapshot.
34
4 -- Debian Janitor <janitor@jelmer.uk> Tue, 18 Oct 2022 03:41:15 -0000
5 -- Debian Janitor <janitor@jelmer.uk> Sat, 17 Dec 2022 15:18:17 -0000
56
67 squeezelite (1.9+git20210102.78fef68-3) unstable; urgency=medium
78
281281
282282 static bool load_flac() {
283283 #if !LINKALL
284 void *handle = dlopen(LIBFLAC, RTLD_NOW);
284 void *handle = NULL;
285 char name[30];
285286 char *err;
287
288 sprintf(name, LIBFLAC, FLAC_API_VERSION_CURRENT < 12 ? 8 : 12);
289
290 handle = dlopen(name, RTLD_NOW);
286291
287292 if (!handle) {
288293 LOG_INFO("dlerror: %s", dlerror());
304309 return false;
305310 }
306311
307 LOG_INFO("loaded "LIBFLAC);
312 LOG_INFO("loaded %s", name);
308313 #endif
309314
310315 return true;
4444
4545 struct opus {
4646 struct OggOpusFile *of;
47 bool end;
4748 #if FRAME_BUF
4849 u8_t *write_buf;
4950 #endif
118119
119120 LOCK_S;
120121
121 if (stream.state <= DISCONNECT && !_buf_used(streambuf)) {
122 if (stream.state <= DISCONNECT && u->end) {
122123 UNLOCK_S;
123124 return DECODE_COMPLETE;
124125 }
170171 frames = process.max_in_frames;
171172 write_buf = process.inbuf;
172173 );
174
175 u->end = frames == 0;
173176
174177 // write the decoded frames into outputbuf then unpack them (they are 16 bits)
175178 n = OP(u, read, u->of, (opus_int16*) write_buf, frames * channels, NULL);
272275 free(u->write_buf);
273276 u->write_buf = NULL;
274277 #endif
278 u->end = false;
275279 }
276280
277281 static bool load_opus(void) {
2525
2626 #define MAJOR_VERSION "1.9"
2727 #define MINOR_VERSION "9"
28 #define MICRO_VERSION "1411"
28 #define MICRO_VERSION "1414"
2929
3030 #if defined(CUSTOM_VERSION)
3131 #define VERSION "v" MAJOR_VERSION "." MINOR_VERSION "-" MICRO_VERSION STR(CUSTOM_VERSION)
189189 // dynamically loaded libraries at run time
190190
191191 #if LINUX
192 #define LIBFLAC "libFLAC.so.8"
192 #define LIBFLAC "libFLAC.so.%d"
193193 #define LIBMAD "libmad.so.0"
194194 #define LIBMPG "libmpg123.so.0"
195195 #define LIBVORBIS "libvorbisfile.so.3"
204204 #endif
205205
206206 #if OSX
207 #define LIBFLAC "libFLAC.8.dylib"
207 #define LIBFLAC "libFLAC.%d.dylib"
208208 #define LIBMAD "libmad.0.dylib"
209209 #define LIBMPG "libmpg123.0.dylib"
210210 #define LIBVORBIS "libvorbisfile.3.dylib"
232232 #endif
233233
234234 #if FREEBSD
235 #define LIBFLAC "libFLAC.so.8"
235 #define LIBFLAC "libFLAC.so.%d"
236236 #define LIBMAD "libmad.so.0"
237237 #define LIBMPG "libmpg123.so.0"
238238 #define LIBVORBIS "libvorbisfile.so.3"
5353
5454 struct vorbis {
5555 OggVorbis_File *vf;
56 bool opened;
56 bool opened, end;
5757 #if FRAME_BUF
5858 u8_t *write_buf;
5959 #endif
139139
140140 LOCK_S;
141141
142 if (stream.state <= DISCONNECT && !_buf_used(streambuf)) {
142 if (stream.state <= DISCONNECT && v->end) {
143143 UNLOCK_S;
144144 return DECODE_COMPLETE;
145145 }
203203 );
204204
205205 bytes = frames * 2 * channels; // samples returned are 16 bits
206 v->end = frames == 0;
206207
207208 // write the decoded frames into outputbuf even though they are 16 bits per sample, then unpack them
208209 #ifdef TREMOR_ONLY
310311 v->opened = false;
311312 }
312313 }
314 v->end = false;
313315 }
314316
315317 static void vorbis_close(void) {