diff options
| author | 2016-09-18 18:01:46 -0700 | |
|---|---|---|
| committer | 2016-09-18 21:14:25 -0700 | |
| commit | 396a8d91a4423d9c793eeff0798d544613647511 (patch) | |
| tree | e0203961233db1ffcbbca2e15154d71d142c5822 /src/audio_core/hle/source.cpp | |
| parent | Tweak formatting settings (diff) | |
| download | yuzu-396a8d91a4423d9c793eeff0798d544613647511.tar.gz yuzu-396a8d91a4423d9c793eeff0798d544613647511.tar.xz yuzu-396a8d91a4423d9c793eeff0798d544613647511.zip | |
Manually tweak source formatting and then re-run clang-format
Diffstat (limited to 'src/audio_core/hle/source.cpp')
| -rw-r--r-- | src/audio_core/hle/source.cpp | 44 |
1 files changed, 24 insertions, 20 deletions
diff --git a/src/audio_core/hle/source.cpp b/src/audio_core/hle/source.cpp index fad0ce2ad..249acc449 100644 --- a/src/audio_core/hle/source.cpp +++ b/src/audio_core/hle/source.cpp | |||
| @@ -163,16 +163,18 @@ void Source::ParseConfig(SourceConfiguration::Configuration& config, | |||
| 163 | 163 | ||
| 164 | if (config.embedded_buffer_dirty) { | 164 | if (config.embedded_buffer_dirty) { |
| 165 | config.embedded_buffer_dirty.Assign(0); | 165 | config.embedded_buffer_dirty.Assign(0); |
| 166 | state.input_queue.emplace(Buffer{config.physical_address, | 166 | state.input_queue.emplace(Buffer{ |
| 167 | config.length, | 167 | config.physical_address, |
| 168 | static_cast<u8>(config.adpcm_ps), | 168 | config.length, |
| 169 | {config.adpcm_yn[0], config.adpcm_yn[1]}, | 169 | static_cast<u8>(config.adpcm_ps), |
| 170 | config.adpcm_dirty.ToBool(), | 170 | {config.adpcm_yn[0], config.adpcm_yn[1]}, |
| 171 | config.is_looping.ToBool(), | 171 | config.adpcm_dirty.ToBool(), |
| 172 | config.buffer_id, | 172 | config.is_looping.ToBool(), |
| 173 | state.mono_or_stereo, | 173 | config.buffer_id, |
| 174 | state.format, | 174 | state.mono_or_stereo, |
| 175 | false}); | 175 | state.format, |
| 176 | false, | ||
| 177 | }); | ||
| 176 | LOG_TRACE(Audio_DSP, "enqueuing embedded addr=0x%08x len=%u id=%hu", | 178 | LOG_TRACE(Audio_DSP, "enqueuing embedded addr=0x%08x len=%u id=%hu", |
| 177 | config.physical_address, config.length, config.buffer_id); | 179 | config.physical_address, config.length, config.buffer_id); |
| 178 | } | 180 | } |
| @@ -182,16 +184,18 @@ void Source::ParseConfig(SourceConfiguration::Configuration& config, | |||
| 182 | for (size_t i = 0; i < 4; i++) { | 184 | for (size_t i = 0; i < 4; i++) { |
| 183 | if (config.buffers_dirty & (1 << i)) { | 185 | if (config.buffers_dirty & (1 << i)) { |
| 184 | const auto& b = config.buffers[i]; | 186 | const auto& b = config.buffers[i]; |
| 185 | state.input_queue.emplace(Buffer{b.physical_address, | 187 | state.input_queue.emplace(Buffer{ |
| 186 | b.length, | 188 | b.physical_address, |
| 187 | static_cast<u8>(b.adpcm_ps), | 189 | b.length, |
| 188 | {b.adpcm_yn[0], b.adpcm_yn[1]}, | 190 | static_cast<u8>(b.adpcm_ps), |
| 189 | b.adpcm_dirty != 0, | 191 | {b.adpcm_yn[0], b.adpcm_yn[1]}, |
| 190 | b.is_looping != 0, | 192 | b.adpcm_dirty != 0, |
| 191 | b.buffer_id, | 193 | b.is_looping != 0, |
| 192 | state.mono_or_stereo, | 194 | b.buffer_id, |
| 193 | state.format, | 195 | state.mono_or_stereo, |
| 194 | true}); | 196 | state.format, |
| 197 | true, | ||
| 198 | }); | ||
| 195 | LOG_TRACE(Audio_DSP, "enqueuing queued %zu addr=0x%08x len=%u id=%hu", i, | 199 | LOG_TRACE(Audio_DSP, "enqueuing queued %zu addr=0x%08x len=%u id=%hu", i, |
| 196 | b.physical_address, b.length, b.buffer_id); | 200 | b.physical_address, b.length, b.buffer_id); |
| 197 | } | 201 | } |