Skip to content
Fred van Stappen edited this page Mar 6, 2014 · 10 revisions

Welcome to the uos wiki!

The best way to show how uos works is to look at the examples in uos/uoslib packages. All is included, you only have to compile the demos and run it…

Here some examples how to use uos :

First : add uos in your uses section.


-Load the libraries : uos_LoadLib(PortAudioFileName, SndFileFileName, Mpg123FileName, SoundTouchFileName); /// full path of libraries

-Let’s play a sound file…

uos_CreatePlayer(0); * /// you may create how many players you want, from 0 to to what you computer can do… uos_AddIntoDevOut(0); * //// Add Output with default parameters uos_AddFromFile(0,‘MySong.mp3’); * //// Input from audio file

And lets play it…

uos_Play(0); //// Play the song…

Here are the basic uos procedures : Each procedure has his equivalent with argument for custom parameters…

Init Procedures : uos_LoadLib; (uos_LoadLibs for uoslib) //// Load dynamic libraries uos_UnLoadLib; _Output Procedures: _ uos_AddIntoDevOut(); //// Output into OUT Device uos_AddIntoFile(); //// Output into Wav File Input Procedures: uos_AddFromDevIn(); //// Input from IN device uos_AddFromFile(); //// Input from Audio File uos_InputLength(); //// Lenght of Input in samples uos_InputPosition(); //// Get position uos_Seek(); //// Change position Player Procedures: uos_Play; //// Start playing uos_RePlay; //// Resume playing after pause uos_Stop; //// Stop playing and free thread uos_Pause; //// Pause playing DSP Procedures : uos_AddDSPIn() //// DSP procedure for input uos_AddDSPOut() //// DSP procedure for output uos_SetDSPin() //// Set DSP In uos_SetDSPout() //// Set DSP out uos_SetDSPVolumeIn //// Set Volume uos_AddFilterIn //// Add filer uos_AddPlugin //// Add pluggin
Clone this wiki locally