Open source implementation of AirPlay 2 Mirroring / Audio protocol in C# .Net Core.
Tested on macOS with iPhone 12 Pro iOS14.
The project is fully functional, but the AAC and ALAC libraries written in C ++ must be built.
To download, build and install fdk-aac do the following:
Clone the repository and cd into the folder:
$ git clone https://github.com/mstorsjo/fdk-aac.git
$ cd fdk-aac
Configure the build and make the library:
$ autoreconf -fi
$ ./configure
$ make
To download, build and install alac do the following:
Clone the repository and cd into the folder:
$ git clone https://github.com/mikebrady/alac.git
$ cd alac
Download and paste 'GiteKat''s files in 'alac/codec' folder cloned before
$ https://github.com/GiteKat/LibALAC/tree/master/LibALAC
The 'mikebrady''s source code does not contains 'extern' keyword. We need external linkage so we use 'GiteKat''s source code files.
Configure the build and make the library:
$ autoreconf -fi
$ ./configure
$ make
On terminal type the follow to install build tools
apt-get install build-essential autoconf automake libtool
Add compiled DLL path into 'appsettings_linux.json' file.
On terminal type the follow to install build tools
brew install autoconf automake libtool
Add compiled DLL path into 'appsettings_osx.json' file.
Use this tutorial to understand how to install build tools and how to compile source code on Windows.
You need MinGW32 or MinGW64 based on arch.
Put repo folders inside msys64 home folder ('C:\msys64\home\').
Start an mingw32.exe or mingw64.exe shell based on arch and execute commands.
The compiled dll will be saved in 'C:\msys64\home\username\fdk-aac-master\.libs\'.
Add compiled DLL path into 'appsettings_win.json' file.
TIP 1: If the ALAC library gives you an error during the compilation try to insert the following arguments in the 'makefile.am' file:
libalac_la_LDFLAGS = -version-info @ALAC_VERSION@ -no-undefined -static-libgcc -static-libstdc++
TIP 2: If the error code 126 appears when loading the dll, try to import all the dlls located in the C:\msys64\bin\ folder into the bin folder of the project.
TIP 3: If the error code 193 appears when loading the dll, it means that you are trying to load a dll with the wrong architecture, so you have to compile the dll with the other mingwXX.exe.
Here you will find an Article where I explain how the whole AirPlay 2 protocol works.
All the resources in this repository are written using only opensource projects.
The code and related resources are meant for educational purposes only.
I do not take any responsibility for the use that will be made of it.
Inspired by others AirPlay open source projects.
Big ty to OmgHax.c's author 😱.
If you appreciate my work, consider buying me a cup of coffee to keep me recharged ☕
... or ... crypto ...
BTC: 1BXhfC5U75G2H8b99wk5AedGFxtqJ6xf8q
BCH: 1BXhfC5U75G2H8b99wk5AedGFxtqJ6xf8q
ETH: 0x4Fc12c7C71C581aBc77945Ab9cFBA8DF9692b713 (ERC20)