summaryrefslogtreecommitdiff
path: root/src/audio_core/hle/source.h
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2016-09-18 09:38:01 +0900
committerGravatar Emmanuel Gil Peyrot2016-09-18 09:38:01 +0900
commitdc8479928c5aee4c6ad6fe4f59006fb604cee701 (patch)
tree569a7f13128450bbab973236615587ff00bced5f /src/audio_core/hle/source.h
parentTravis: Import Dolphin’s clang-format hook. (diff)
downloadyuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.tar.gz
yuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.tar.xz
yuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.zip
Sources: Run clang-format on everything.
Diffstat (limited to 'src/audio_core/hle/source.h')
-rw-r--r--src/audio_core/hle/source.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/audio_core/hle/source.h b/src/audio_core/hle/source.h
index 7ee08d424..a1ab15520 100644
--- a/src/audio_core/hle/source.h
+++ b/src/audio_core/hle/source.h
@@ -40,13 +40,17 @@ public:
40 /** 40 /**
41 * This is called once every audio frame. This performs per-source processing every frame. 41 * This is called once every audio frame. This performs per-source processing every frame.
42 * @param config The new configuration we've got for this Source from the application. 42 * @param config The new configuration we've got for this Source from the application.
43 * @param adpcm_coeffs ADPCM coefficients to use if config tells us to use them (may contain invalid values otherwise). 43 * @param adpcm_coeffs ADPCM coefficients to use if config tells us to use them (may contain
44 * @return The current status of this Source. This is given back to the emulated application via SharedMemory. 44 * invalid values otherwise).
45 * @return The current status of this Source. This is given back to the emulated application via
46 * SharedMemory.
45 */ 47 */
46 SourceStatus::Status Tick(SourceConfiguration::Configuration& config, const s16_le (&adpcm_coeffs)[16]); 48 SourceStatus::Status Tick(SourceConfiguration::Configuration& config,
49 const s16_le (&adpcm_coeffs)[16]);
47 50
48 /** 51 /**
49 * Mix this source's output into dest, using the gains for the `intermediate_mix_id`-th intermediate mixer. 52 * Mix this source's output into dest, using the gains for the `intermediate_mix_id`-th
53 * intermediate mixer.
50 * @param dest The QuadFrame32 to mix into. 54 * @param dest The QuadFrame32 to mix into.
51 * @param intermediate_mix_id The id of the intermediate mix whose gains we are using. 55 * @param intermediate_mix_id The id of the intermediate mix whose gains we are using.
52 */ 56 */
@@ -77,7 +81,7 @@ private:
77 }; 81 };
78 82
79 struct BufferOrder { 83 struct BufferOrder {
80 bool operator() (const Buffer& a, const Buffer& b) const { 84 bool operator()(const Buffer& a, const Buffer& b) const {
81 // Lower buffer_id comes first. 85 // Lower buffer_id comes first.
82 return a.buffer_id > b.buffer_id; 86 return a.buffer_id > b.buffer_id;
83 } 87 }
@@ -134,7 +138,8 @@ private:
134 void ParseConfig(SourceConfiguration::Configuration& config, const s16_le (&adpcm_coeffs)[16]); 138 void ParseConfig(SourceConfiguration::Configuration& config, const s16_le (&adpcm_coeffs)[16]);
135 /// INTERNAL: Generate the current audio output for this frame based on our internal state. 139 /// INTERNAL: Generate the current audio output for this frame based on our internal state.
136 void GenerateFrame(); 140 void GenerateFrame();
137 /// INTERNAL: Dequeues a buffer and does preprocessing on it (decoding, resampling). Puts it into current_buffer. 141 /// INTERNAL: Dequeues a buffer and does preprocessing on it (decoding, resampling). Puts it
142 /// into current_buffer.
138 bool DequeueBuffer(); 143 bool DequeueBuffer();
139 /// INTERNAL: Generates a SourceStatus::Status based on our internal state. 144 /// INTERNAL: Generates a SourceStatus::Status based on our internal state.
140 SourceStatus::Status GetCurrentStatus(); 145 SourceStatus::Status GetCurrentStatus();