summaryrefslogtreecommitdiff
path: root/servers/audio_server.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2020-03-27 16:14:19 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-03-27 20:36:43 -0300
commit16245f2c2942de62f8b123269749272731cfd5fb (patch)
treef5d9bf2b900032f45b0361176d62bb0ccaaaafb5 /servers/audio_server.h
parentfcfffd729789cd80aa77056ca089697b52297d04 (diff)
Remove the audio memory allocator, use regular one instead.
Diffstat (limited to 'servers/audio_server.h')
-rw-r--r--servers/audio_server.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/servers/audio_server.h b/servers/audio_server.h
index 8df0172750..a1a3dde719 100644
--- a/servers/audio_server.h
+++ b/servers/audio_server.h
@@ -232,14 +232,6 @@ private:
static AudioServer *singleton;
- // TODO create an audiodata pool to optimize memory
-
- Map<void *, uint32_t> audio_data;
- size_t audio_data_total_mem;
- size_t audio_data_max_mem;
-
- Mutex audio_data_lock;
-
void init_channels_and_buffers();
void _mix_step();
@@ -350,12 +342,6 @@ public:
virtual double get_time_to_next_mix() const;
virtual double get_time_since_last_mix() const;
- void *audio_data_alloc(uint32_t p_data_len, const uint8_t *p_from_data = NULL);
- void audio_data_free(void *p_data);
-
- size_t audio_data_get_total_memory_usage() const;
- size_t audio_data_get_max_memory_usage() const;
-
void add_callback(AudioCallback p_callback, void *p_userdata);
void remove_callback(AudioCallback p_callback, void *p_userdata);