Skip to content
Snippets Groups Projects
Commit 9b6e5b11 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3757] Copy wave buffer info and data into AudioLoop buffer

parent 5ce5cea7
Branches
Tags
No related merge requests found
...@@ -367,11 +367,14 @@ bool WaveFile::openExistingWaveFile() ...@@ -367,11 +367,14 @@ bool WaveFile::openExistingWaveFile()
_debug ("WaveFile: data size in frame %ld", _file_size); _debug ("WaveFile: data size in frame %ld", _file_size);
// Fill audioloop info,
_file_stream.read ( (char *) _buffer, _file_size); // Init audio loop buffer info
_buffer = new SFLDataFormat[_file_size];
_size = _file_size; _size = _file_size;
_sampleRate = (int) srate; _sampleRate = (int) srate;
// Copy audio into audioloop
_file_stream.read ( (char *) _buffer, _file_size);
_debug ("WaveFile: file successfully opened"); _debug ("WaveFile: file successfully opened");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment