summaryrefslogtreecommitdiff
path: root/scene/io
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-01-07 18:25:37 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-01-07 18:26:38 -0300
commit2ab83e1abbf5ee6d00e16056a9e9394114026f28 (patch)
tree7efbb375cc4d00d8e8589fcf1b6a1303bec5df2d /scene/io
parent2a38a5eaa844043b846e03d6655f84caf8a31e74 (diff)
Memory pool vectors (DVector) have been enormously simplified in code, and renamed to PoolVector
Diffstat (limited to 'scene/io')
-rw-r--r--scene/io/resource_format_wav.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/io/resource_format_wav.cpp b/scene/io/resource_format_wav.cpp
index 3720aa13fd..f75836d2df 100644
--- a/scene/io/resource_format_wav.cpp
+++ b/scene/io/resource_format_wav.cpp
@@ -171,9 +171,9 @@ RES ResourceFormatLoaderWAV::load(const String &p_path, const String& p_original
if (format_bits>8)
len*=2;
- DVector<uint8_t> data;
+ PoolVector<uint8_t> data;
data.resize(len);
- DVector<uint8_t>::Write dataw = data.write();
+ PoolVector<uint8_t>::Write dataw = data.write();
void * data_ptr = dataw.ptr();
for (int i=0;i<frames;i++) {
@@ -215,7 +215,7 @@ RES ResourceFormatLoaderWAV::load(const String &p_path, const String& p_original
}
- dataw=DVector<uint8_t>::Write();
+ dataw=PoolVector<uint8_t>::Write();
sample->set_data(data);