SCTC
the soundcloud.com terminal client
Functions
sound.h File Reference
#include "track.h"
Include dependency graph for sound.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool sound_init (void(*time_callback)(int))
 Global initialization of sound. More...
 
bool sound_play (struct track *track)
 Start playback of track. More...
 
void sound_seek (unsigned int pos)
 
unsigned int sound_get_current_pos ()
 
bool sound_finalize ()
 
bool sound_stop ()
 Stop playback of current track. More...
 

Function Documentation

bool sound_finalize ( )

Here is the caller graph for this function:

unsigned int sound_get_current_pos ( )

Here is the caller graph for this function:

bool sound_init ( void(*)(int)  time_callback)

Global initialization of sound.

This function is required to be called prior to the first call sound_play() and does several internal initializations.

Parameters
time_callbackcallback function receiving the elapsed seconds as parameter
Returns
true in case of success, false otherwise

Here is the call graph for this function:

Here is the caller graph for this function:

bool sound_play ( struct track track)

Start playback of track.

This function is required to be called prior to the first call sound_play() and does several internal initializations.

Parameters
trackthe track to play
Returns
true in case of success, false otherwise

Here is the caller graph for this function:

void sound_seek ( unsigned int  pos)

Here is the caller graph for this function:

bool sound_stop ( )

Stop playback of current track.

Returns
true in case of success, false otherwise

Here is the call graph for this function:

Here is the caller graph for this function: