Babel  1
The voip software that only works on your local network
Loading...
Searching...
No Matches
main.cpp File Reference

Main entry point for the program. More...

#include "Logging.hpp"
#include "Network.hpp"
#include "Controls.hpp"
#include "Constants.hpp"
#include "BootScreen.hpp"
#include "Audio/Audio.hpp"
#include "Compressor/Manager.hpp"
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

const unsigned int stringToUnsignedInt (const std::string &str, const unsigned int defaultValue=0)
 Converts a string to an unsigned integer.
 
int main (int argc, char **argv)
 Main function of the program.
 

Detailed Description

Main entry point for the program.

This file contains the main function which initializes the program, processes command-line arguments, and starts the main loop for sending or receiving audio data.

Definition in file main.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Main function of the program.

This function initializes the program, processes command-line arguments, and starts the main loop for sending or receiving audio data.

Parameters
argcNumber of command-line arguments.
argvArray of command-line arguments.
Returns
int Program exit status.

Definition at line 58 of file main.cpp.

◆ stringToUnsignedInt()

const unsigned int stringToUnsignedInt ( const std::string & str,
const unsigned int defaultValue = 0 )

Converts a string to an unsigned integer.

This function attempts to convert a string to an unsigned integer. If the conversion fails, it returns a default value.

Parameters
strThe string to convert.
defaultValueThe default value to return if conversion fails.
Returns
The converted unsigned integer or the default value if conversion fails.

Definition at line 36 of file main.cpp.