Go to the source code of this file.
| bool cache_track_exists |
( |
struct track * |
track | ) |
|
Check weather a track is cached or not.
- Parameters
-
| track | The track to search for |
- Returns
- true if track is cached, otherwise false
| size_t cache_track_get |
( |
struct track * |
track, |
|
|
void * |
buffer |
|
) |
| |
Load a track from the cache into buffer.
- Parameters
-
| track | The track to load |
| buffer | The buffer receiving the data |
- Returns
- The number of bytes written to buffer (0 if track is not within the cache)
| bool cache_track_save |
( |
struct track * |
track, |
|
|
void * |
buffer, |
|
|
size_t |
size |
|
) |
| |
Save data for a specific track to cache.
- Parameters
-
| track | The track to save data for |
| buffer | The data to save |
| size | The number of Bytes to save |
- Returns
- true if saving to cache was successfull, otherwise false