Skip to content

Commit

Permalink
1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
philippe44 committed Nov 28, 2023
1 parent 0d8050f commit 4001fa1
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 8 deletions.
Binary file renamed AirConnect-1.4.0.zip → AirConnect-1.5.0.zip
Binary file not shown.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.5.0
- add aac codec (use refactored libraop and move encoder to libcodecs

1.4.0
- proper fix of HTTP frame sending & filling

Expand Down
3 changes: 2 additions & 1 deletion aircast/src/aircast.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ static char usage[] =
"Usage: [options]\n"
" -b <ip|iface>\t\tnetwork address or interface to bind to\n"
" -a <port>[:<count>]\tset inbound port and range for RTP and HTTP\n"
" -c <mp3[:<rate>]|flc[:0..9]|wav>\taudio format send to player\n"
" -c <mp3[:<rate>]|aac[:<rate>]|flc[:0..9]|wav>\taudio format send to player\n"
" -v <0..1>\t\t group MediaVolume factor\n"
" -x <config file>\tread config from file (default is ./config.xml)\n"
" -i <config file>\tdiscover players, save <config file> and exit\n"
Expand Down Expand Up @@ -212,6 +212,7 @@ static void raop_cb(void *owner, raopsr_event_t event, ...) {

(void)!asprintf(&uri, "http://%s:%u/stream-%u", inet_ntoa(glHost), port, count++);
if (!strcasecmp(Device->Config.Codec, "mp3")) ContentType = "audio/mpeg";
else if (!strcasecmp(Device->Config.Codec, "aac")) ContentType = "audio/aac";
else if (!strcasecmp(Device->Config.Codec, "wav")) ContentType = "audio/wav";
else ContentType = "audio/flac";
CastLoad(Device->CastCtx, uri, ContentType, Device->Name, &MetaData, 0);
Expand Down
2 changes: 1 addition & 1 deletion aircast/src/aircast.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "raop_server.h"
#include "cast_util.h"

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

/*----------------------------------------------------------------------------*/
/* typedefs */
Expand Down
3 changes: 2 additions & 1 deletion airupnp/AirUPnP.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
<ClCompile Include="src\mr_util.c" />
</ItemGroup>
<ItemGroup>
<Library Include="..\common\libraop\targets\win32\$(PlatformTarget)\libraop.lib" />
<!-- <Library Include="..\..\libraop\lib\win32\x86\libraop_d.lib" /> -->
<Library Include="..\common\libraop\targets\win32\$(PlatformTarget)\libraop.lib" />
<Library Include="..\common\libcodecs\targets\win32\$(PlatformTarget)\libcodecs.lib" />
<Library Include="..\common\libmdns\targets\win32\$(PlatformTarget)\libmdns.lib" />
<Library Include="..\common\libpthreads4w\targets\win32\$(PlatformTarget)\libpthreadVC3d.lib" />
Expand Down
2 changes: 1 addition & 1 deletion airupnp/airupnp.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<Library Include="..\common\libmdns\targets\win32\$(PlatformTarget)\libmdns.lib" />
<Library Include="..\common\libpupnp\targets\win32\$(PlatformTarget)\libpupnp.lib" />
<Library Include="..\common\libpthreads4w\targets\win32\$(PlatformTarget)\libpthreadVC3d.lib" />
<Library Include="..\common\libraop\targets\win32\x86\libraop.lib" />
<Library Include="..\..\libraop\lib\win32\x86\libraop_d.lib" />
</ItemGroup>
<ItemGroup>
<Filter Include="crosstools">
Expand Down
3 changes: 2 additions & 1 deletion airupnp/src/airupnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ tMRConfig glMRConfig = {
"http-get:*:audio/wav:DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000",
"http-get:*:audio/flac:DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000",
"http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000",
"http-get:*:audio/aac:DLNA.ORG_PN=AAC_ADTS;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=0d500000000000000000000000000000",
},
};

Expand Down Expand Up @@ -321,7 +322,7 @@ void HandleRAOP(void *owner, raopsr_event_t event, ...) {
mp3radio = "x-rincon-mp3radio://";
LOG_INFO("[%p]: Sonos live stream", Device);
}
(void)!asprintf(&uri, "%shttp://%s:%u/stream-%u.%s", mp3radio, inet_ntoa(glHost), port, count++, Device->Config.Codec);
(void)!asprintf(&uri, "%shttp://%s:%u/stream-%u.flac", mp3radio, inet_ntoa(glHost), port, count++);
AVTSetURI(Device, uri, &Device->MetaData, Device->ProtocolInfo);
NFREE(uri);
}
Expand Down
3 changes: 2 additions & 1 deletion airupnp/src/airupnp.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "cross_util.h"
#include "metadata.h"

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

/*----------------------------------------------------------------------------*/
/* typedefs */
Expand Down Expand Up @@ -68,6 +68,7 @@ typedef struct sMRConfig
char wav[STR_LEN];
char flac[STR_LEN];
char mp3[STR_LEN];
char aac[STR_LEN];
} ProtocolInfo;
} tMRConfig;

Expand Down
2 changes: 2 additions & 0 deletions airupnp/src/config_upnp.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ void SaveConfig(char *name, void *ref, bool full) {
XMLUpdateNode(doc, proto, false, "pcm", glMRConfig.ProtocolInfo.pcm);
XMLUpdateNode(doc, proto, false, "wav", glMRConfig.ProtocolInfo.wav);
XMLUpdateNode(doc, proto, false, "flac", glMRConfig.ProtocolInfo.flac);
XMLUpdateNode(doc, proto, false, "aac", glMRConfig.ProtocolInfo.aac);
XMLUpdateNode(doc, proto, false, "mp3", glMRConfig.ProtocolInfo.mp3);

// mutex is locked here so no risk of a player being destroyed in our back
Expand Down Expand Up @@ -148,6 +149,7 @@ static void LoadConfigItem(tMRConfig *Conf, char *name, char *val) {
if (!strcmp(name, "pcm")) strcpy(Conf->ProtocolInfo.pcm, val);
if (!strcmp(name, "wav")) strcpy(Conf->ProtocolInfo.wav, val);
if (!strcmp(name, "flac")) strcpy(Conf->ProtocolInfo.flac, val);
if (!strcmp(name, "aac")) strcpy(Conf->ProtocolInfo.aac, val);
if (!strcmp(name, "mp3")) strcpy(Conf->ProtocolInfo.mp3, val);
}

Expand Down
2 changes: 2 additions & 0 deletions buildall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd airupnp && ../build.sh $1 && cd ..
cd aircast && ../build.sh $1 && cd ..
2 changes: 1 addition & 1 deletion common/libcodecs
Submodule libcodecs updated 152 files

0 comments on commit 4001fa1

Please sign in to comment.