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/pipe.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/pipe.cpp')
| -rw-r--r-- | src/audio_core/hle/pipe.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/audio_core/hle/pipe.cpp b/src/audio_core/hle/pipe.cpp index fe67d2503..f2b6d6552 100644 --- a/src/audio_core/hle/pipe.cpp +++ b/src/audio_core/hle/pipe.cpp | |||
| @@ -97,7 +97,8 @@ static void AudioPipeWriteStructAddresses() { | |||
| 97 | 0x8000 + offsetof(SharedMemory, unknown11) / 2, | 97 | 0x8000 + offsetof(SharedMemory, unknown11) / 2, |
| 98 | 0x8000 + offsetof(SharedMemory, unknown12) / 2, | 98 | 0x8000 + offsetof(SharedMemory, unknown12) / 2, |
| 99 | 0x8000 + offsetof(SharedMemory, unknown13) / 2, | 99 | 0x8000 + offsetof(SharedMemory, unknown13) / 2, |
| 100 | 0x8000 + offsetof(SharedMemory, unknown14) / 2}; | 100 | 0x8000 + offsetof(SharedMemory, unknown14) / 2, |
| 101 | }; | ||
| 101 | 102 | ||
| 102 | // Begin with a u16 denoting the number of structs. | 103 | // Begin with a u16 denoting the number of structs. |
| 103 | WriteU16(DspPipe::Audio, static_cast<u16>(struct_addresses.size())); | 104 | WriteU16(DspPipe::Audio, static_cast<u16>(struct_addresses.size())); |
| @@ -118,7 +119,12 @@ void PipeWrite(DspPipe pipe_number, const std::vector<u8>& buffer) { | |||
| 118 | return; | 119 | return; |
| 119 | } | 120 | } |
| 120 | 121 | ||
| 121 | enum class StateChange { Initalize = 0, Shutdown = 1, Wakeup = 2, Sleep = 3 }; | 122 | enum class StateChange { |
| 123 | Initalize = 0, | ||
| 124 | Shutdown = 1, | ||
| 125 | Wakeup = 2, | ||
| 126 | Sleep = 3, | ||
| 127 | }; | ||
| 122 | 128 | ||
| 123 | // The difference between Initialize and Wakeup is that Input state is maintained | 129 | // The difference between Initialize and Wakeup is that Input state is maintained |
| 124 | // when sleeping but isn't when turning it off and on again. (TODO: Implement this.) | 130 | // when sleeping but isn't when turning it off and on again. (TODO: Implement this.) |