diff options
| author | Poommetee Ketson | 2017-10-28 19:04:25 +0700 |
|---|---|---|
| committer | Poommetee Ketson | 2017-10-28 19:15:51 +0700 |
| commit | 83f5d7e40aa4457e5edfbe4f495c3c9b075b39b3 (patch) | |
| tree | 689e1870094033a52d9e97b3c0e6c837c3b5da29 /modules/opus/audio_stream_opus.cpp | |
| parent | 87dbb716d9c99b03755cf2f875d6cdba51f8d356 (diff) | |
| download | godot-83f5d7e40aa4457e5edfbe4f495c3c9b075b39b3.tar.gz godot-83f5d7e40aa4457e5edfbe4f495c3c9b075b39b3.tar.zst godot-83f5d7e40aa4457e5edfbe4f495c3c9b075b39b3.zip | |
Diffstat (limited to 'modules/opus/audio_stream_opus.cpp')
| -rw-r--r-- | modules/opus/audio_stream_opus.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/opus/audio_stream_opus.cpp b/modules/opus/audio_stream_opus.cpp index c7748b9b2..06eab4c94 100644 --- a/modules/opus/audio_stream_opus.cpp +++ b/modules/opus/audio_stream_opus.cpp @@ -267,7 +267,7 @@ void AudioStreamPlaybackOpus::seek(float p_time) { frames_mixed = osrate * p_time; } -int AudioStreamPlaybackOpus::mix(int16_t *p_bufer, int p_frames) { +int AudioStreamPlaybackOpus::mix(int16_t *p_buffer, int p_frames) { if (!playing) return 0; @@ -281,7 +281,7 @@ int AudioStreamPlaybackOpus::mix(int16_t *p_bufer, int p_frames) { break; } - int ret = op_read(opus_file, (opus_int16 *)p_bufer, todo * stream_channels, ¤t_section); + int ret = op_read(opus_file, (opus_int16 *)p_buffer, todo * stream_channels, ¤t_section); if (ret < 0) { playing = false; ERR_EXPLAIN("Error reading Opus File: " + file); @@ -325,7 +325,7 @@ int AudioStreamPlaybackOpus::mix(int16_t *p_bufer, int p_frames) { frames_mixed += ret; - p_bufer += ret * stream_channels; + p_buffer += ret * stream_channels; p_frames -= ret; } |
