summaryrefslogtreecommitdiff
path: root/indra/llaudio
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2023-09-08 10:35:10 -0400
committerNat Goodspeed <nat@lindenlab.com>2023-09-08 10:35:10 -0400
commit6cb906c44908a304af26e3ea95de88ff34ef46f7 (patch)
treeac06d7ed63d27c75269754ad1465e72b99e0f864 /indra/llaudio
parenteb8458587537e06df23447db56b9910a0d4e451e (diff)
SL-18837: Add OpenAL::createDefaultStreamingAudioImpl().
LLAudioEngine added a new abstract virtual method that wasn't yet implemented for LLStreamingAudio_OpenAL.
Diffstat (limited to 'indra/llaudio')
-rw-r--r--indra/llaudio/llaudioengine_openal.cpp5
-rw-r--r--indra/llaudio/llaudioengine_openal.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/indra/llaudio/llaudioengine_openal.cpp b/indra/llaudio/llaudioengine_openal.cpp
index 0a79614424..e6c62caae9 100644
--- a/indra/llaudio/llaudioengine_openal.cpp
+++ b/indra/llaudio/llaudioengine_openal.cpp
@@ -119,6 +119,11 @@ std::string LLAudioEngine_OpenAL::getDriverName(bool verbose)
return version.str();
}
+LLStreamingAudioInterface *LLAudioEngine_OpenAL::createDefaultStreamingAudioImpl() const
+{
+ return new LLStreamingAudio_OpenAL();
+}
+
// virtual
void LLAudioEngine_OpenAL::allocateListener()
{
diff --git a/indra/llaudio/llaudioengine_openal.h b/indra/llaudio/llaudioengine_openal.h
index a3cab97cd2..cd55261813 100644
--- a/indra/llaudio/llaudioengine_openal.h
+++ b/indra/llaudio/llaudioengine_openal.h
@@ -40,8 +40,9 @@ class LLAudioEngine_OpenAL : public LLAudioEngine
LLAudioEngine_OpenAL();
virtual ~LLAudioEngine_OpenAL();
- virtual bool init(void *user_data, const std::string &app_title);
- virtual std::string getDriverName(bool verbose);
+ virtual bool init(void *user_data, const std::string &app_title);
+ virtual std::string getDriverName(bool verbose);
+ virtual LLStreamingAudioInterface* createDefaultStreamingAudioImpl() const;
virtual void allocateListener();
virtual void shutdown();