summaryrefslogtreecommitdiff
path: root/scene/resources/audio_stream_sample.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2021-09-07 17:38:51 -0300
committerGitHub <noreply@github.com>2021-09-07 17:38:51 -0300
commitca11f8ad3045c280b559adea4e2263c38c2c6df4 (patch)
treea8387f731c0a35abe224bccf8cb82e672193b645 /scene/resources/audio_stream_sample.cpp
parent43c896ac6a309bca229619a6d295918a3b656d6a (diff)
parent0e3cab41ebac855fbf13b4c409e42d2661c5842b (diff)
Merge pull request #52237 from ellenhp/polyphony
Add optional polyphonic playback to built-in audio player nodes
Diffstat (limited to 'scene/resources/audio_stream_sample.cpp')
-rw-r--r--scene/resources/audio_stream_sample.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/audio_stream_sample.cpp b/scene/resources/audio_stream_sample.cpp
index 2ab9b7b5a4..d018103e64 100644
--- a/scene/resources/audio_stream_sample.cpp
+++ b/scene/resources/audio_stream_sample.cpp
@@ -480,6 +480,10 @@ float AudioStreamSample::get_length() const {
return float(len) / mix_rate;
}
+bool AudioStreamSample::is_monophonic() const {
+ return false;
+}
+
void AudioStreamSample::set_data(const Vector<uint8_t> &p_data) {
AudioServer::get_singleton()->lock();
if (data) {