Code Monkey home page Code Monkey logo

saudio's Introduction

saudio

saudio is a simple audio file streaming server developed in C++14. It was mainly written for learning purposes as I wanted to get more familiar with the language's new features.

saudio compiles successfully in POSIX compliant OSes. The code that handles platform specific code can be extended to support other platforms.

saudio is minimalistic. It only uses the STL and the POSIX API.

An SCons build script is included with the source code. In order build the server using the aforementioned script you need to have the SCons software installed in your machine.

How to build:

cd in the directory containing the SConstruct file and enter the command

  scons

if you need to build with debugging symbols enabled

  scons --debug-build

When starting the server, it needs to receive the port number that it will listen for incoming connections (using the -p command line argument) and the directory containing the audio files that the server can stream (-l). It can optionally receive the maximum simultaneous connections (-c) and how many serving threads to spawn (-t).

In order for a client to request an audio file stream, a URL like this should be used

http://hostname:port/filename

It is possible for a client to search the server's available audio files by using a URL like this

http://hostname:port/songsearch/keyword

The server's response will be an .m3u file containing all URLs for files matching the keyword.

saudio's People

Contributors

vdaras avatar

Stargazers

dkkv0000 avatar Cristian Pallarés avatar

Forkers

commshare

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.