Generally, this is done using commercial off the shelf (COTS) software, packaged in software libraries. The libraries contain compiled software source files that perform certain functionalities, in a given execution environment.
For example, a software library may provide access to a certain type of sensor, allowing the software application to read data values from the sensor.
Other software libraries may implement given algorithms, such as analyzing and/or converting data (eg: generating streaming audio).