Function

RBRhythmDBQueryModelbitrate_sort_func

Declaration [src]

gint
rhythmdb_query_model_bitrate_sort_func (
  RhythmDBEntry* a,
  RhythmDBEntry* b,
  gpointer data
)

Description [src]

Sort function for sorting by bitrate. Lossless encodings (as identified by media type) are considered to have the highest possible bitrate. Falls back to sorting by location for equal bitrates.

Parameters

a

Type: RhythmDBEntry

A RhythmDBEntry.

The data is owned by the caller of the function.
b

Type: RhythmDBEntry

A RhythmDBEntry.

The data is owned by the caller of the function.
data

Type: gpointer

Nothing.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: gint

Result of sort comparison between a and b.