mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Reduce memory overhead of save_to_wav
This commit is contained in:
parent
ef1153baf3
commit
044444f2e2
1 changed files with 1 additions and 2 deletions
|
|
@ -580,8 +580,7 @@ Error AudioStreamWAV::save_to_wav(const String &p_path) {
|
|||
file->store_32(sub_chunk_2_size); //Subchunk2Size
|
||||
|
||||
// Add data
|
||||
Vector<uint8_t> stream_data = get_data();
|
||||
const uint8_t *read_data = stream_data.ptr();
|
||||
const uint8_t *read_data = data.ptr();
|
||||
switch (format) {
|
||||
case AudioStreamWAV::FORMAT_8_BITS:
|
||||
for (unsigned int i = 0; i < data_bytes; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue