Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
db390f8d
Commit
db390f8d
authored
1 year ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Fox
parent
80d93df1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llaudio/llaudioengine_fmodstudio.cpp
+7
-7
7 additions, 7 deletions
indra/llaudio/llaudioengine_fmodstudio.cpp
indra/llaudio/llaudioengine_fmodstudio.h
+0
-1
0 additions, 1 deletion
indra/llaudio/llaudioengine_fmodstudio.h
with
7 additions
and
8 deletions
indra/llaudio/llaudioengine_fmodstudio.cpp
+
7
−
7
View file @
db390f8d
...
@@ -86,12 +86,12 @@ bool LLAudioEngine_FMODSTUDIO::init(void* userdata, const std::string &app_title
...
@@ -86,12 +86,12 @@ bool LLAudioEngine_FMODSTUDIO::init(void* userdata, const std::string &app_title
if
(
version
<
FMOD_VERSION
)
if
(
version
<
FMOD_VERSION
)
{
{
LL_WARNS
(
"AppInit"
)
<<
"
Error : You are using the wrong
FMOD Studio version
(
"
<<
version
LL_WARNS
(
"AppInit"
)
<<
"FMOD Studio version
mismatch, actual:
"
<<
version
<<
")! You should be using FMOD Studio
"
<<
FMOD_VERSION
<<
LL_ENDL
;
<<
" expected:
"
<<
FMOD_VERSION
<<
LL_ENDL
;
}
}
// In this case, all sounds, PLUS wind and stream will be software.
// In this case, all sounds, PLUS wind and stream will be software.
result
=
mSystem
->
setSoftwareChannels
(
LL_MAX_AUDIO_CHANNELS
+
2
);
result
=
mSystem
->
setSoftwareChannels
(
LL_MAX_AUDIO_CHANNELS
+
EXTRA_SOUND_CHANNELS
);
Check_FMOD_Error
(
result
,
"FMOD::System::setSoftwareChannels"
);
Check_FMOD_Error
(
result
,
"FMOD::System::setSoftwareChannels"
);
FMOD_ADVANCEDSETTINGS
adv_settings
=
{
};
FMOD_ADVANCEDSETTINGS
adv_settings
=
{
};
...
@@ -130,7 +130,7 @@ bool LLAudioEngine_FMODSTUDIO::init(void* userdata, const std::string &app_title
...
@@ -130,7 +130,7 @@ bool LLAudioEngine_FMODSTUDIO::init(void* userdata, const std::string &app_title
{
{
LL_DEBUGS
(
"AppInit"
)
<<
"Trying PulseAudio audio output..."
<<
LL_ENDL
;
LL_DEBUGS
(
"AppInit"
)
<<
"Trying PulseAudio audio output..."
<<
LL_ENDL
;
if
((
result
=
mSystem
->
setOutput
(
FMOD_OUTPUTTYPE_PULSEAUDIO
))
==
FMOD_OK
&&
if
((
result
=
mSystem
->
setOutput
(
FMOD_OUTPUTTYPE_PULSEAUDIO
))
==
FMOD_OK
&&
(
result
=
mSystem
->
init
(
LL_MAX_AUDIO_CHANNELS
+
2
,
fmod_flags
,
const_cast
<
char
*>
(
app_title
.
c_str
())))
==
FMOD_OK
)
(
result
=
mSystem
->
init
(
LL_MAX_AUDIO_CHANNELS
+
EXTRA_SOUND_CHANNELS
,
fmod_flags
,
const_cast
<
char
*>
(
app_title
.
c_str
())))
==
FMOD_OK
)
{
{
LL_DEBUGS
(
"AppInit"
)
<<
"PulseAudio output initialized OKAY"
<<
LL_ENDL
;
LL_DEBUGS
(
"AppInit"
)
<<
"PulseAudio output initialized OKAY"
<<
LL_ENDL
;
audio_ok
=
true
;
audio_ok
=
true
;
...
@@ -151,7 +151,7 @@ bool LLAudioEngine_FMODSTUDIO::init(void* userdata, const std::string &app_title
...
@@ -151,7 +151,7 @@ bool LLAudioEngine_FMODSTUDIO::init(void* userdata, const std::string &app_title
{
{
LL_DEBUGS
(
"AppInit"
)
<<
"Trying ALSA audio output..."
<<
LL_ENDL
;
LL_DEBUGS
(
"AppInit"
)
<<
"Trying ALSA audio output..."
<<
LL_ENDL
;
if
((
result
=
mSystem
->
setOutput
(
FMOD_OUTPUTTYPE_ALSA
))
==
FMOD_OK
&&
if
((
result
=
mSystem
->
setOutput
(
FMOD_OUTPUTTYPE_ALSA
))
==
FMOD_OK
&&
(
result
=
mSystem
->
init
(
LL_MAX_AUDIO_CHANNELS
+
2
,
fmod_flags
,
0
))
==
FMOD_OK
)
(
result
=
mSystem
->
init
(
LL_MAX_AUDIO_CHANNELS
+
EXTRA_SOUND_CHANNELS
,
fmod_flags
,
0
))
==
FMOD_OK
)
{
{
LL_DEBUGS
(
"AppInit"
)
<<
"ALSA audio output initialized OKAY"
<<
LL_ENDL
;
LL_DEBUGS
(
"AppInit"
)
<<
"ALSA audio output initialized OKAY"
<<
LL_ENDL
;
audio_ok
=
true
;
audio_ok
=
true
;
...
@@ -192,7 +192,7 @@ bool LLAudioEngine_FMODSTUDIO::init(void* userdata, const std::string &app_title
...
@@ -192,7 +192,7 @@ bool LLAudioEngine_FMODSTUDIO::init(void* userdata, const std::string &app_title
#else // LL_LINUX
#else // LL_LINUX
// initialize the FMOD engine
// initialize the FMOD engine
result
=
mSystem
->
init
(
LL_MAX_AUDIO_CHANNELS
+
2
,
fmod_flags
,
0
);
result
=
mSystem
->
init
(
LL_MAX_AUDIO_CHANNELS
+
EXTRA_SOUND_CHANNELS
,
fmod_flags
,
0
);
if
(
Check_FMOD_Error
(
result
,
"Error initializing FMOD Studio with default settins, retrying with other format"
))
if
(
Check_FMOD_Error
(
result
,
"Error initializing FMOD Studio with default settins, retrying with other format"
))
{
{
result
=
mSystem
->
setSoftwareFormat
(
44100
,
FMOD_SPEAKERMODE_STEREO
,
0
/*- ignore*/
);
result
=
mSystem
->
setSoftwareFormat
(
44100
,
FMOD_SPEAKERMODE_STEREO
,
0
/*- ignore*/
);
...
@@ -200,7 +200,7 @@ bool LLAudioEngine_FMODSTUDIO::init(void* userdata, const std::string &app_title
...
@@ -200,7 +200,7 @@ bool LLAudioEngine_FMODSTUDIO::init(void* userdata, const std::string &app_title
{
{
return
false
;
return
false
;
}
}
result
=
mSystem
->
init
(
LL_MAX_AUDIO_CHANNELS
+
2
,
fmod_flags
,
0
);
result
=
mSystem
->
init
(
LL_MAX_AUDIO_CHANNELS
+
EXTRA_SOUND_CHANNELS
,
fmod_flags
,
0
);
}
}
if
(
Check_FMOD_Error
(
result
,
"Error initializing FMOD Studio"
))
if
(
Check_FMOD_Error
(
result
,
"Error initializing FMOD Studio"
))
{
{
...
...
This diff is collapsed.
Click to expand it.
indra/llaudio/llaudioengine_fmodstudio.h
+
0
−
1
View file @
db390f8d
...
@@ -86,7 +86,6 @@ class LLAudioEngine_FMODSTUDIO final : public LLAudioEngine
...
@@ -86,7 +86,6 @@ class LLAudioEngine_FMODSTUDIO final : public LLAudioEngine
FMOD
::
System
*
mSystem
;
FMOD
::
System
*
mSystem
;
bool
mEnableProfiler
;
bool
mEnableProfiler
;
U32
mResampleMethod
;
U32
mResampleMethod
;
std
::
string
mAppName
;
public
:
public
:
static
FMOD
::
ChannelGroup
*
mChannelGroups
[
LLAudioEngine
::
AUDIO_TYPE_COUNT
];
static
FMOD
::
ChannelGroup
*
mChannelGroups
[
LLAudioEngine
::
AUDIO_TYPE_COUNT
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment