Allow auto-resizing of track list, start off with a mere 4 instead of 100 and double it every time we run out of space

This commit is contained in:
Thulinma 2024-01-20 21:03:33 +01:00
parent d0374812e4
commit 470e4fc631
3 changed files with 94 additions and 8 deletions

View file

@ -162,7 +162,7 @@ static inline void show_stackframe(){}
#define SHM_STREAM_TRACK_LEN 4 * SHM_STREAM_TRACK_ITEM
// Default values, these will scale up and down when needed, and are mainly used as starting values.
#define DEFAULT_TRACK_COUNT 100
#define DEFAULT_TRACK_COUNT 4
#define DEFAULT_FRAGMENT_COUNT 60
#define DEFAULT_KEY_COUNT 60
#define DEFAULT_PART_COUNT 30 * DEFAULT_KEY_COUNT