Skip to content

BlueDragon28/simple-audio-player

Repository files navigation

Simple-audio-player

Simple-audio-player is a basic audio player writen in C++17 using the simple-audio-library has audio back-end. It's supporting a large variety of files formats and support also parsing music collection.

Features

Simple-audio-player support playback of many audio files formats. You can choose between the file system and the music collection to play sound. For fast album cover loading, create an image and save it named large_cover.png or small_cover.png inside the album folder. It is also possible to choose which folders to parse for the music collection in the options.

Compilation

The simple-audio-player use the CMake build generator, it needs Qt (Quick, Sql and Widgets), the simple-audio-library, taglib and PortAudio. If you compiled the SAL statically, you will also need FLAC++ and libsndfile.

Windows

To compile on Windows, you must include the dependencies in the dependencies' folder. Each of the dependencies must be in the appropriate folder.

  • SAL -> dependencies/simple-audio-library/

  • PortAudio -> dependencies/portaudio/

  • FLAC++ -> dependencies/flac/

  • libsndfile -> dependencies/libsndfile/

  • taglib -> dependencies/taglib/

  • simple-audio-player-smtc -> Interface with the Windows Runtime System Media Transport Control API. You need to compile it using the Visual Studio solution to the same compilation type and architecture of this project, and copy this files into dependencies/simple-audio-player-smtc (buildOutput must be changed with the real binary output) :

    • simple-audio-player-smtc/SAP_SMTC.h
    • buildOutput/simple-audio-player-smtc.lib
    • buildOutput/simple-audio-player-smtc.dll

    If you do not want or can't compile simple-audio-player-smtc, you can disable it with the cmake option USE_SMTC -DUSE_SMTC=off. You will still be able to control playback with the media keys.

Linux

Install the dependencies' library using your package manager, they are available in most distributions.

License

The software is licensed under the MIT license. Check the LICENSE file.

Some of the images are from Search icons created by Chanut - Flaticon.

cpp-httplib is used to handle oauth2 redirect url request.