summaryrefslogtreecommitdiffstats
path: root/scene/resources/audio_stream_wav.h
diff options
context:
space:
mode:
authorDeeJayLSP <djlsplays@gmail.com>2024-08-30 10:00:26 -0300
committerDeeJayLSP <djlsplays@gmail.com>2024-09-08 02:32:59 -0300
commitd5ad6dd69936a43795431bbfd4fd2ab4f4311928 (patch)
tree5c1d2832de905d7a5a67bd87c17420fa08d2b3e5 /scene/resources/audio_stream_wav.h
parenta5830f6eb9fe25fbb7e58a723dbea8509aec8a85 (diff)
downloadredot-engine-d5ad6dd69936a43795431bbfd4fd2ab4f4311928.tar.gz
AudioStream(Playback)WAV: Use LocalVectors instead of pointers
Diffstat (limited to 'scene/resources/audio_stream_wav.h')
-rw-r--r--scene/resources/audio_stream_wav.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/audio_stream_wav.h b/scene/resources/audio_stream_wav.h
index 47aa10e790..bc62e8883a 100644
--- a/scene/resources/audio_stream_wav.h
+++ b/scene/resources/audio_stream_wav.h
@@ -62,7 +62,7 @@ class AudioStreamPlaybackWAV : public AudioStreamPlayback {
qoa_desc desc = {};
uint32_t data_ofs = 0;
uint32_t frame_len = 0;
- int16_t *dec = nullptr;
+ LocalVector<int16_t> dec;
uint32_t dec_len = 0;
int64_t cache_pos = -1;
int16_t cache[2] = { 0, 0 };
@@ -137,7 +137,7 @@ private:
int loop_begin = 0;
int loop_end = 0;
int mix_rate = 44100;
- void *data = nullptr;
+ LocalVector<uint8_t> data;
uint32_t data_bytes = 0;
protected: