Functions | |
| bool | sp_track_is_loaded (sp_track *track) |
| sp_error | sp_track_error (sp_track *track) |
| bool | sp_track_is_available (sp_session *session, sp_track *track) |
| bool | sp_track_is_local (sp_session *session, sp_track *track) |
| bool | sp_track_is_autolinked (sp_session *session, sp_track *track) |
| bool | sp_track_is_starred (sp_session *session, sp_track *track) |
| void | sp_track_set_starred (sp_session *session, const sp_track **tracks, int num_tracks, bool star) |
| int | sp_track_num_artists (sp_track *track) |
| sp_artist * | sp_track_artist (sp_track *track, int index) |
| sp_album * | sp_track_album (sp_track *track) |
| const char * | sp_track_name (sp_track *track) |
| int | sp_track_duration (sp_track *track) |
| int | sp_track_popularity (sp_track *track) |
| int | sp_track_disc (sp_track *track) |
| int | sp_track_index (sp_track *track) |
| sp_track * | sp_localtrack_create (const char *artist, const char *title, const char *album, int length) |
| void | sp_track_add_ref (sp_track *track) |
| void | sp_track_release (sp_track *track) |
| sp_track* sp_localtrack_create | ( | const char * | artist, | |
| const char * | title, | |||
| const char * | album, | |||
| int | length | |||
| ) |
Returns the newly created local track
| [in] | artist | Name of the artist |
| [in] | title | Song title |
| [in] | album | Name of the album, or an empty string if not available |
| [in] | title | Length in MS, or -1 if not available. |
| void sp_track_add_ref | ( | sp_track * | track | ) |
Increase the reference count of a track
| [in] | track | The track object |
The album of the specified track
| [in] | track | A track object |
The artist matching the specified index performing on the current track.
| [in] | track | The track whose participating artist you are interested in |
| [in] | index | The index for the participating artist. Should be in the interval [0, sp_track_num_artists() - 1] |
| int sp_track_disc | ( | sp_track * | track | ) |
Returns the disc number for a track
| [in] | track | A track object |
| int sp_track_duration | ( | sp_track * | track | ) |
The duration, in milliseconds, of the specified track
| [in] | track | A track object |
Return an error code associated with a track. For example if it could not load
| [in] | track | The track |
| int sp_track_index | ( | sp_track * | track | ) |
Returns the position of a track on its disc
| [in] | track | A track object |
| bool sp_track_is_autolinked | ( | sp_session * | session, | |
| sp_track * | track | |||
| ) |
Return true if the track is autolinked to another track.
| [in] | session | Session |
| [in] | track | The track |
| bool sp_track_is_available | ( | sp_session * | session, | |
| sp_track * | track | |||
| ) |
Return true if the track is available for playback.
| [in] | session | Session |
| [in] | track | The track |
| bool sp_track_is_loaded | ( | sp_track * | track | ) |
Get load status for the specified track. If the track is not loaded yet, all other functions operating on the track return default values.
| [in] | track | The track whose load status you are interested in |
| bool sp_track_is_local | ( | sp_session * | session, | |
| sp_track * | track | |||
| ) |
Return true if the track is a local file.
| [in] | session | Session |
| [in] | track | The track |
| bool sp_track_is_starred | ( | sp_session * | session, | |
| sp_track * | track | |||
| ) |
Return true if the track is starred by the currently logged in user.
| [in] | session | Session |
| [in] | track | The track |
| const char* sp_track_name | ( | sp_track * | track | ) |
The string representation of the specified track's name
| [in] | track | A track object |
| int sp_track_num_artists | ( | sp_track * | track | ) |
The number of artists performing on the specified track
| [in] | track | The track whose number of participating artists you are interested in |
| int sp_track_popularity | ( | sp_track * | track | ) |
Returns popularity for track
| [in] | track | A track object |
| void sp_track_release | ( | sp_track * | track | ) |
Decrease the reference count of a track
| [in] | track | The track object |
| void sp_track_set_starred | ( | sp_session * | session, | |
| const sp_track ** | tracks, | |||
| int | num_tracks, | |||
| bool | star | |||
| ) |
Star/Unstar the specified track
| [in] | session | Session |
| [in] | tracks | Array of pointer to tracks. |
| [in] | num_tracks | Length of tracks array |
| [in] | star | Starred status of the track |