diff options
Diffstat (limited to 'src/audio_core')
| -rw-r--r-- | src/audio_core/hle/dsp.cpp | 4 | ||||
| -rw-r--r-- | src/audio_core/hle/pipe.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/audio_core/hle/dsp.cpp b/src/audio_core/hle/dsp.cpp index 58690970a..31421fdc6 100644 --- a/src/audio_core/hle/dsp.cpp +++ b/src/audio_core/hle/dsp.cpp | |||
| @@ -23,12 +23,12 @@ static size_t CurrentRegionIndex() { | |||
| 23 | // This function only returns a 0 or 1. | 23 | // This function only returns a 0 or 1. |
| 24 | 24 | ||
| 25 | if (g_regions[0].frame_counter == 0xFFFFu && g_regions[1].frame_counter != 0xFFFEu) { | 25 | if (g_regions[0].frame_counter == 0xFFFFu && g_regions[1].frame_counter != 0xFFFEu) { |
| 26 | // Wraparound has occured. | 26 | // Wraparound has occurred. |
| 27 | return 1; | 27 | return 1; |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | if (g_regions[1].frame_counter == 0xFFFFu && g_regions[0].frame_counter != 0xFFFEu) { | 30 | if (g_regions[1].frame_counter == 0xFFFFu && g_regions[0].frame_counter != 0xFFFEu) { |
| 31 | // Wraparound has occured. | 31 | // Wraparound has occurred. |
| 32 | return 0; | 32 | return 0; |
| 33 | } | 33 | } |
| 34 | 34 | ||
diff --git a/src/audio_core/hle/pipe.cpp b/src/audio_core/hle/pipe.cpp index b472c81d8..bc69acbc2 100644 --- a/src/audio_core/hle/pipe.cpp +++ b/src/audio_core/hle/pipe.cpp | |||
| @@ -117,7 +117,7 @@ void PipeWrite(DspPipe pipe_number, const std::vector<u8>& buffer) { | |||
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | enum class StateChange { | 119 | enum class StateChange { |
| 120 | Initalize = 0, | 120 | Initialize = 0, |
| 121 | Shutdown = 1, | 121 | Shutdown = 1, |
| 122 | Wakeup = 2, | 122 | Wakeup = 2, |
| 123 | Sleep = 3, | 123 | Sleep = 3, |
| @@ -130,7 +130,7 @@ void PipeWrite(DspPipe pipe_number, const std::vector<u8>& buffer) { | |||
| 130 | // sleeping and reset it back after wakeup on behalf of the DSP. | 130 | // sleeping and reset it back after wakeup on behalf of the DSP. |
| 131 | 131 | ||
| 132 | switch (static_cast<StateChange>(buffer[0])) { | 132 | switch (static_cast<StateChange>(buffer[0])) { |
| 133 | case StateChange::Initalize: | 133 | case StateChange::Initialize: |
| 134 | LOG_INFO(Audio_DSP, "Application has requested initialization of DSP hardware"); | 134 | LOG_INFO(Audio_DSP, "Application has requested initialization of DSP hardware"); |
| 135 | ResetPipes(); | 135 | ResetPipes(); |
| 136 | AudioPipeWriteStructAddresses(); | 136 | AudioPipeWriteStructAddresses(); |