diff options
author | SaracenOne <SaracenOne@gmail.com> | 2018-07-27 19:27:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-27 19:27:14 +0100 |
commit | e8f13432f88fd0e1ec8a8979e2f40e358bcc5ac2 (patch) | |
tree | b0962c874bfd78eef0f688b5f7160414b06cdd00 /servers/audio_server.h | |
parent | dd8a0b92e0bbc0e82263061b3947cb93a39f9df1 (diff) | |
parent | 597301db349c2c0c70af6b411465a5f578765052 (diff) |
Merge pull request #6 from marcelofg55/audio_mic_mf2
Renamed AudioDriver audio_input_* vars to input_*
Diffstat (limited to 'servers/audio_server.h')
-rw-r--r-- | servers/audio_server.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/servers/audio_server.h b/servers/audio_server.h index a9ed66a2d5..2663a0f968 100644 --- a/servers/audio_server.h +++ b/servers/audio_server.h @@ -53,12 +53,13 @@ class AudioDriver { #endif protected: - Vector<int32_t> audio_input_buffer; - unsigned int audio_input_position; - unsigned int audio_input_size; + Vector<int32_t> input_buffer; + unsigned int input_position; + unsigned int input_size; void audio_server_process(int p_frames, int32_t *p_buffer, bool p_update_mix_time = true); void update_mix_time(int p_frames); + void input_buffer_write(int32_t sample); #ifdef DEBUG_ENABLED _FORCE_INLINE_ void start_counting_ticks() { prof_ticks = OS::get_singleton()->get_ticks_usec(); } @@ -108,9 +109,9 @@ public: SpeakerMode get_speaker_mode_by_total_channels(int p_channels) const; int get_total_channels_by_speaker_mode(SpeakerMode) const; - Vector<int32_t> get_audio_input_buffer() { return audio_input_buffer; } - unsigned int get_audio_input_position() { return audio_input_position; } - unsigned int get_audio_input_size() { return audio_input_size; } + Vector<int32_t> get_input_buffer() { return input_buffer; } + unsigned int get_input_position() { return input_position; } + unsigned int get_input_size() { return input_size; } #ifdef DEBUG_ENABLED uint64_t get_profiling_time() const { return prof_time; } |