asra_set_source()

Set the audio source.

Synopsis:

#include "asr/asra.h"
 
int asra_set_source(const char *url)

Arguments:

url

The audio source URL.

Library:

libasr

Description:

The asra_set_source() sets the specified URL as the audio source and sets the module best suited to that URL (the module that rates itself highest) as current.

Returns:

0 Success.

-1 An error occurred.