![]() |
SCTC
the soundcloud.com terminal client
|
Implementation of the cache. More...
#include "_hard_config.h"#include "cache.h"#include "config.h"#include "log.h"#include "track.h"Functions | |
| bool | cache_track_exists (struct track *track) |
| Check weather a track is cached or not. More... | |
| size_t | cache_track_get (struct track *track, void *buffer) |
| Load a track from the cache into buffer. More... | |
| bool | cache_track_save (struct track *track, void *buffer, size_t size) |
| Save data for a specific track to cache. More... | |
Implementation of the cache.
This file contains the actual implementation of the cache for both the actual stream (an .mp3 file) and the track_lists.
| bool cache_track_exists | ( | struct track * | track | ) |
Check weather a track is cached or not.
| track | The track to search for |
| size_t cache_track_get | ( | struct track * | track, |
| void * | buffer | ||
| ) |
Load a track from the cache into buffer.
| track | The track to load |
| buffer | The buffer receiving the data |
| bool cache_track_save | ( | struct track * | track, |
| void * | buffer, | ||
| size_t | size | ||
| ) |
Save data for a specific track to cache.
| track | The track to save data for |
| buffer | The data to save |
| size | The number of Bytes to save |
1.8.9.1