summaryrefslogtreecommitdiffstats
path: root/scene/resources/audio_stream_sample.cpp
diff options
context:
space:
mode:
authorGustav Lund <glu@gamblify.com>2018-01-18 16:03:53 +0100
committerGustav Lund <glu@gamblify.com>2018-07-26 14:14:29 +0200
commitcd2070c684c9befa4a0c8badfecfcded07d490c0 (patch)
tree0afd4e374d2879b74e9f669dbca3861c715c5cb7 /scene/resources/audio_stream_sample.cpp
parent8c9e10553cd429857086a9d635fc55305065ff76 (diff)
downloadredot-engine-cd2070c684c9befa4a0c8badfecfcded07d490c0.tar.gz
Audio Recording module
Implements an Audio bus effect that outputs the audio from the bus into a wav file Now channels audio recording into an AudioStreamSample instead of saving to wav
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 02a9e4d69b..cc5d9ccb9f 100644
--- a/scene/resources/audio_stream_sample.cpp
+++ b/scene/resources/audio_stream_sample.cpp
@@ -509,6 +509,10 @@ PoolVector<uint8_t> AudioStreamSample::get_data() const {
return pv;
}
+void AudioStreamSample::save_to_wav(String p_path) {
+// TODO! Implement saving to wav file
+}
+
Ref<AudioStreamPlayback> AudioStreamSample::instance_playback() {
Ref<AudioStreamPlaybackSample> sample;