libgroove  5.0.0
loudness.h File Reference

Go to the source code of this file.

Data Structures

struct  GrooveLoudnessDetectorInfo
 
struct  GrooveLoudnessDetector
 

Functions

struct GrooveLoudnessDetectorgroove_loudness_detector_create (void)
 
void groove_loudness_detector_destroy (struct GrooveLoudnessDetector *detector)
 
int groove_loudness_detector_attach (struct GrooveLoudnessDetector *detector, struct GroovePlaylist *playlist)
 once you attach, you must detach before destroying the playlist More...
 
int groove_loudness_detector_detach (struct GrooveLoudnessDetector *detector)
 
int groove_loudness_detector_info_get (struct GrooveLoudnessDetector *detector, struct GrooveLoudnessDetectorInfo *info, int block)
 returns < 0 on error, 0 on aborted (block=1) or no info ready (block=0), 1 on info returned More...
 
int groove_loudness_detector_info_peek (struct GrooveLoudnessDetector *detector, int block)
 returns < 0 on error, 0 on no info ready, 1 on info ready if block is 1, block until info is ready More...
 
void groove_loudness_detector_position (struct GrooveLoudnessDetector *detector, struct GroovePlaylistItem **item, double *seconds)
 get the position of the detect head both the current playlist item and the position in seconds in the playlist item are given. More...
 

Function Documentation

int groove_loudness_detector_attach ( struct GrooveLoudnessDetector detector,
struct GroovePlaylist playlist 
)

once you attach, you must detach before destroying the playlist

Examples:
replaygain.c.
struct GrooveLoudnessDetector* groove_loudness_detector_create ( void  )
Examples:
replaygain.c.
void groove_loudness_detector_destroy ( struct GrooveLoudnessDetector detector)
Examples:
replaygain.c.
int groove_loudness_detector_detach ( struct GrooveLoudnessDetector detector)
Examples:
replaygain.c.
int groove_loudness_detector_info_get ( struct GrooveLoudnessDetector detector,
struct GrooveLoudnessDetectorInfo info,
int  block 
)

returns < 0 on error, 0 on aborted (block=1) or no info ready (block=0), 1 on info returned

Examples:
replaygain.c.
int groove_loudness_detector_info_peek ( struct GrooveLoudnessDetector detector,
int  block 
)

returns < 0 on error, 0 on no info ready, 1 on info ready if block is 1, block until info is ready

void groove_loudness_detector_position ( struct GrooveLoudnessDetector detector,
struct GroovePlaylistItem **  item,
double *  seconds 
)

get the position of the detect head both the current playlist item and the position in seconds in the playlist item are given.

item will be set to NULL if the playlist is empty you may pass NULL for item or seconds