Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
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
JennaHuntsman
XDG Integration
Commits
92541ee0
Commit
92541ee0
authored
12 years ago
by
callum_linden
Browse files
Options
Downloads
Patches
Plain Diff
Add more granular App init log spam to try to determine what fails for a small subset of users
parent
da6a4ac6
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llaudio/llaudioengine_fmodex.cpp
+17
-7
17 additions, 7 deletions
indra/llaudio/llaudioengine_fmodex.cpp
with
17 additions
and
7 deletions
indra/llaudio/llaudioengine_fmodex.cpp
+
17
−
7
View file @
92541ee0
...
...
@@ -258,19 +258,29 @@ bool LLAudioEngine_FMODEX::init(const S32 num_channels, void* userdata)
int
r_numbuffers
,
r_samplerate
,
r_channels
,
r_bits
;
unsigned
int
r_bufferlength
;
char
r_name
[
256
];
mSystem
->
getDSPBufferSize
(
&
r_bufferlength
,
&
r_numbuffers
);
LL_INFOS
(
"AppInit"
)
<<
"LLAudioEngine_FMODEX::init(): r_bufferlength="
<<
r_bufferlength
<<
" bytes"
<<
LL_ENDL
;
LL_INFOS
(
"AppInit"
)
<<
"LLAudioEngine_FMODEX::init(): r_numbuffers="
<<
r_numbuffers
<<
LL_ENDL
;
mSystem
->
getSoftwareFormat
(
&
r_samplerate
,
NULL
,
&
r_channels
,
NULL
,
NULL
,
&
r_bits
);
mSystem
->
getDriverInfo
(
0
,
r_name
,
255
,
0
);
r_name
[
255
]
=
'\0'
;
int
latency
=
(
int
)(
1000.0
f
*
r_bufferlength
*
r_numbuffers
/
r_samplerate
);
LL_INFOS
(
"AppInit"
)
<<
"LLAudioEngine_FMODEX::init(): r_samplerate="
<<
r_samplerate
<<
"Hz"
<<
LL_ENDL
;
LL_INFOS
(
"AppInit"
)
<<
"LLAudioEngine_FMODEX::init(): r_channels="
<<
r_channels
<<
LL_ENDL
;
LL_INFOS
(
"AppInit"
)
<<
"LLAudioEngine_FMODEX::init(): r_bits ="
<<
r_bits
<<
LL_ENDL
;
char
r_name
[
512
];
mSystem
->
getDriverInfo
(
0
,
r_name
,
511
,
0
);
r_name
[
511
]
=
'\0'
;
LL_INFOS
(
"AppInit"
)
<<
"LLAudioEngine_FMODEX::init(): r_name=
\"
"
<<
r_name
<<
"
\"
"
<<
LL_ENDL
;
LL_INFOS
(
"AppInit"
)
<<
"FMOD device: "
<<
r_name
<<
"
\n
"
<<
"FMOD Ex parameters: "
<<
r_samplerate
<<
" Hz * "
<<
r_channels
<<
" * "
<<
r_bits
<<
" bit
\n
"
<<
"
\t
buffer "
<<
r_bufferlength
<<
" * "
<<
r_numbuffers
<<
" ("
<<
latency
<<
"ms)"
<<
LL_ENDL
;
int
latency
=
100
;
// optimistic default - i suspect if sample rate is 0, everything breaks.
if
(
r_samplerate
!=
0
)
latency
=
(
int
)(
1000.0
f
*
r_bufferlength
*
r_numbuffers
/
r_samplerate
);
LL_INFOS
(
"AppInit"
)
<<
"LLAudioEngine_FMODEX::init(): latency="
<<
latency
<<
"ms"
<<
LL_ENDL
;
mInited
=
true
;
LL_INFOS
(
"AppInit"
)
<<
"LLAudioEngine_FMODEX::init(): initialization complete."
<<
LL_ENDL
;
return
true
;
}
...
...
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