Skip to content

Commit

Permalink
1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Dec 22, 2023
1 parent cc4983d commit d6d4c44
Show file tree
Hide file tree
Showing 41 changed files with 49 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Note: beware of crypto version (see shairtunes)

1.5.1
- 'q' and 'f' have been inverted forever in slimproto
- make 'f' work as expected: only flush streaming part of a track

1.5.0
- use fixed libcodecs and libraop for alac
- add '-c' to set codec on command line
Expand Down
2 changes: 1 addition & 1 deletion application/libmdns
Submodule libmdns updated 53 files
+1 −1 mdnssd
+1 −1 mdnssvc
+ targets/freebsd/x86_64/libmdns.a
+ targets/freebsd/x86_64/libmdnssd.a
+ targets/freebsd/x86_64/libmdnssvc.a
+ targets/linux/aarch64/libmdns.a
+ targets/linux/aarch64/libmdnssd.a
+ targets/linux/aarch64/libmdnssvc.a
+ targets/linux/arm/libmdns.a
+ targets/linux/arm/libmdnssd.a
+ targets/linux/arm/libmdnssvc.a
+ targets/linux/armv5/libmdns.a
+ targets/linux/armv5/libmdnssd.a
+ targets/linux/armv5/libmdnssvc.a
+ targets/linux/armv6/libmdns.a
+ targets/linux/armv6/libmdnssd.a
+ targets/linux/armv6/libmdnssvc.a
+ targets/linux/mips/libmdns.a
+ targets/linux/mips/libmdnssd.a
+ targets/linux/mips/libmdnssvc.a
+ targets/linux/mipsel/libmdns.a
+ targets/linux/mipsel/libmdnssd.a
+ targets/linux/mipsel/libmdnssvc.a
+ targets/linux/powerpc/libmdns.a
+ targets/linux/powerpc/libmdnssd.a
+ targets/linux/powerpc/libmdnssvc.a
+ targets/linux/sparc64/libmdns.a
+ targets/linux/sparc64/libmdnssd.a
+ targets/linux/sparc64/libmdnssvc.a
+ targets/linux/x86/libmdns.a
+ targets/linux/x86/libmdnssd.a
+ targets/linux/x86/libmdnssvc.a
+ targets/linux/x86_64/libmdns.a
+ targets/linux/x86_64/libmdnssd.a
+ targets/linux/x86_64/libmdnssvc.a
+ targets/macos/arm64/libmdns.a
+ targets/macos/arm64/libmdnssd.a
+ targets/macos/arm64/libmdnssvc.a
+ targets/macos/x86_64/libmdns.a
+ targets/macos/x86_64/libmdnssd.a
+ targets/macos/x86_64/libmdnssvc.a
+ targets/solaris/x86_64/libmdns.a
+ targets/solaris/x86_64/libmdnssd.a
+ targets/solaris/x86_64/libmdnssvc.a
+ targets/win32/x86/libmdns-Debug.lib
+ targets/win32/x86/libmdns.lib
+ targets/win32/x86/libmdnssd-Debug.lib
+ targets/win32/x86/libmdnssd-Debug.pdb
+ targets/win32/x86/libmdnssd-Release.lib
+ targets/win32/x86/libmdnssvc-Debug.lib
+ targets/win32/x86/libmdnssvc-Debug.pdb
+ targets/win32/x86/libmdnssvc-Release.lib
+ targets/win32/x86/libmdnssvc-Release.pdb
2 changes: 1 addition & 1 deletion application/squeeze2raop.vcxproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<LocalDebuggerCommandArguments>-d all=info -x office.xml</LocalDebuggerCommandArguments>
<LocalDebuggerCommandArguments>-d all=info -x office.xml -s 192.168.2.10</LocalDebuggerCommandArguments>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion application/squeeze2raop/inc/squeezedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#pragma once

#define VERSION "v1.5.0"" ("__DATE__" @ "__TIME__")"
#define VERSION "v1.5.1"" ("__DATE__" @ "__TIME__")"

#define STR_LEN 256

Expand Down
8 changes: 6 additions & 2 deletions application/squeeze2raop/squeeze2raop.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,12 @@ bool sq_callback(void *caller, sq_action_t action, ...)
pthread_mutex_unlock(&glMainMutex);
}
break;
case SQ_SETSERVER:
strcpy(device->sq_config.dynamic.server, inet_ntoa(*va_arg(args, struct in_addr*)));
case SQ_SETSERVER: {
struct in_addr server;
server.s_addr = va_arg(args, uint32_t);
strcpy(device->sq_config.dynamic.server, inet_ntoa(server));
break;
}
default:
break;
}
Expand Down Expand Up @@ -1079,6 +1082,7 @@ static void *ActiveRemoteThread(void *args) {
LOG_INFO("[%p]: remote command %s", Device, command);

if (!strcasecmp(command, "pause")) sq_notify(Device->SqueezeHandle, SQ_PAUSE);
if (!strcasecmp(command, "discrete-pause")) sq_notify(Device->SqueezeHandle, SQ_PAUSE);
if (!strcasecmp(command, "play")) sq_notify(Device->SqueezeHandle, SQ_PLAY);
if (!strcasecmp(command, "playpause")) sq_notify(Device->SqueezeHandle, SQ_PLAY_PAUSE);
if (!strcasecmp(command, "stop")) sq_notify(Device->SqueezeHandle, SQ_STOP);
Expand Down
16 changes: 15 additions & 1 deletion application/squeezelite/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ void output_close_common(struct thread_ctx_s *ctx) {

/*---------------------------------------------------------------------------*/
void output_flush(struct thread_ctx_s *ctx) {
LOG_DEBUG("[%p]: flush output buffer", ctx);
LOG_INFO("[%p]: flush output buffer (full)", ctx);
buf_flush(ctx->outputbuf);
LOCK;
ctx->output.fade = FADE_INACTIVE;
Expand All @@ -341,8 +341,22 @@ void output_flush(struct thread_ctx_s *ctx) {
}
ctx->output.frames_played = ctx->output.frames_played_dmp = 0;
ctx->output.track_start_time = -1;
ctx->output.track_start = NULL;
UNLOCK;
}

/*---------------------------------------------------------------------------*/
bool output_flush_streaming(struct thread_ctx_s* ctx) {
LOG_INFO("[%p]: flush output buffer (streaming)", ctx);
LOCK;
bool flushed = ctx->output.track_start != NULL;
if (ctx->output.track_start) {
ctx->outputbuf->writep = ctx->output.track_start;
ctx->output.track_start = NULL;
}
UNLOCK;
return flushed;
}



23 changes: 13 additions & 10 deletions application/squeezelite/slimproto.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,24 +237,27 @@ static void process_strm(u8_t *pkt, int len, struct thread_ctx_s *ctx) {
case 't':
sendSTAT("STMt", strm->replay_gain, ctx); // STMt replay_gain is no longer used to track latency, but support it
break;
case 'f':
case 'q':
decode_flush(ctx);
output_flush(ctx);
ctx->status.frames_played = 0;
stream_disconnect(ctx);
// this is noop for LMS up to 8.4 at least
sendSTAT("STMf", 0, ctx);
buf_flush(ctx->streambuf);
if (ctx->last_command != 'q') ctx->callback(ctx->MR, SQ_STOP);
break;
case 'q':
decode_flush(ctx);
output_flush(ctx);
ctx->status.frames_played = 0;
if (stream_disconnect(ctx)) {
sendSTAT("STMf", 0, ctx);
case 'f':
{
decode_flush(ctx);
bool flushed = output_flush_streaming(ctx);
if (flushed | stream_disconnect(ctx)) {
// this is noop for LMS up to 8.4 at least
sendSTAT("STMf", 0, ctx);
}
buf_flush(ctx->streambuf);
break;
}
buf_flush(ctx->streambuf);
if (ctx->last_command != 'q') ctx->callback(ctx->MR, SQ_STOP);
break;
case 'p':
{
unsigned interval = unpackN(&strm->replay_gain);
Expand Down
1 change: 1 addition & 0 deletions application/squeezelite/squeezelite.h
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ struct outputstate {
void output_init(const char *device, unsigned output_buf_size, unsigned rates[], struct thread_ctx_s *ctx);
void output_close(struct thread_ctx_s *ctx);
void output_flush(struct thread_ctx_s *ctx);
bool output_flush_streaming(struct thread_ctx_s* ctx);
// _* called with mutex locked
frames_t _output_frames(frames_t avail, struct thread_ctx_s *ctx);
void _checkfade(bool, struct thread_ctx_s *ctx);
Expand Down
Binary file modified plugin/Bin/squeeze2raop-freebsd-x86_64
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-freebsd-x86_64-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-aarch64
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-aarch64-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-arm
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-arm-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-armv5
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-armv5-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-armv6
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-armv6-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-mips
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-mips-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-powerpc
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-powerpc-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-sparc64
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-sparc64-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-x86
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-x86-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-x86_64
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-linux-x86_64-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-macos
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-macos-arm64
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-macos-arm64-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-macos-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-macos-x86_64
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-macos-x86_64-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-solaris-x86_64
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-solaris-x86_64-static
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop-static.exe
Binary file not shown.
Binary file modified plugin/Bin/squeeze2raop.exe
Binary file not shown.
4 changes: 4 additions & 0 deletions plugin/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Note: beware of crypto version (see shairtunes)

1.5.1
- 'q' and 'f' have been inverted forever in slimproto
- make 'f' work as expected: only flush streaming part of a track

1.5.0
- use fixed libcodecs and libraop for alac
- add '-c' to set codec on command line
Expand Down
4 changes: 2 additions & 2 deletions plugin/install.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version='1.0' standalone='yes'?>
<extensions>
<optionsURL>plugins/RaopBridge/settings/basic.html</optionsURL>
<targetApplication>
<maxVersion>*</maxVersion>
<id>SlimServer</id>
<minVersion>8.0</minVersion>
</targetApplication>
<optionsURL>plugins/RaopBridge/settings/basic.html</optionsURL>
<creator>Philippe</creator>
<version>1.5.0</version>
<version>1.5.1</version>
<name>PLUGIN_RAOPBRIDGE</name>
<description>PLUGIN_RAOPBRIDGE_DESC</description>
<email>[email protected]</email>
Expand Down

0 comments on commit d6d4c44

Please sign in to comment.