aboutsummaryrefslogtreecommitdiffstats
path: root/alc/voice.h
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2020-03-28 17:20:38 -0700
committerChris Robinson <chris.kcat@gmail.com>2020-03-28 18:15:05 -0700
commit963d9b761b53c270fc8b7e91e32b2fe7b79b51be (patch)
tree94f1c70ce6af21c5703942bde09c1d62a67af36e /alc/voice.h
parentfb076125454efb92fb8c9684dadf0f338d70aa32 (diff)
Rename ALvoice and related structs to Voice
Diffstat (limited to 'alc/voice.h')
-rw-r--r--alc/voice.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/alc/voice.h b/alc/voice.h
index 6583d4f1..7adffe7f 100644
--- a/alc/voice.h
+++ b/alc/voice.h
@@ -122,7 +122,7 @@ struct SendParams {
};
-struct ALvoicePropsBase {
+struct VoiceProps {
float Pitch;
float Gain;
float OuterGain;
@@ -175,10 +175,10 @@ struct ALvoicePropsBase {
} Send[MAX_SENDS];
};
-struct ALvoiceProps : public ALvoicePropsBase {
- std::atomic<ALvoiceProps*> next{nullptr};
+struct VoicePropsItem : public VoiceProps {
+ std::atomic<VoicePropsItem*> next{nullptr};
- DEF_NEWDEL(ALvoiceProps)
+ DEF_NEWDEL(VoicePropsItem)
};
#define VOICE_IS_STATIC (1u<<0)
@@ -191,7 +191,7 @@ struct ALvoiceProps : public ALvoicePropsBase {
#define VOICE_TYPE_MASK (VOICE_IS_STATIC | VOICE_IS_CALLBACK)
-struct ALvoice {
+struct Voice {
enum State {
Stopped,
Playing,
@@ -199,9 +199,9 @@ struct ALvoice {
Pending
};
- std::atomic<ALvoiceProps*> mUpdate{nullptr};
+ std::atomic<VoicePropsItem*> mUpdate{nullptr};
- ALvoicePropsBase mProps;
+ VoiceProps mProps;
std::atomic<ALuint> mSourceID{0u};
std::atomic<State> mPlayState{Stopped};
@@ -259,14 +259,14 @@ struct ALvoice {
};
al::vector<ChannelData> mChans{2};
- ALvoice() = default;
- ALvoice(const ALvoice&) = delete;
- ~ALvoice() { delete mUpdate.exchange(nullptr, std::memory_order_acq_rel); }
- ALvoice& operator=(const ALvoice&) = delete;
+ Voice() = default;
+ Voice(const Voice&) = delete;
+ ~Voice() { delete mUpdate.exchange(nullptr, std::memory_order_acq_rel); }
+ Voice& operator=(const Voice&) = delete;
void mix(const State vstate, ALCcontext *Context, const ALuint SamplesToDo);
- DEF_NEWDEL(ALvoice)
+ DEF_NEWDEL(Voice)
};
#endif /* VOICE_H */