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
a1b76518
Commit
a1b76518
authored
15 years ago
by
Richard Nelson
Browse files
Options
Downloads
Patches
Plain Diff
fix for media not working in release builds
reviewed by Mani
parent
fe1413c2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/media_plugins/webkit/windows_volume_catcher.cpp
+4
-7
4 additions, 7 deletions
indra/media_plugins/webkit/windows_volume_catcher.cpp
indra/newview/skins/default/xui/en/panel_login.xml
+1
-1
1 addition, 1 deletion
indra/newview/skins/default/xui/en/panel_login.xml
with
5 additions
and
8 deletions
indra/media_plugins/webkit/windows_volume_catcher.cpp
+
4
−
7
View file @
a1b76518
...
@@ -34,7 +34,6 @@
...
@@ -34,7 +34,6 @@
#include
"volume_catcher.h"
#include
"volume_catcher.h"
#include
<windows.h>
#include
<windows.h>
#include
"llsingleton.h"
#include
"llsingleton.h"
class
VolumeCatcherImpl
:
public
LLSingleton
<
VolumeCatcherImpl
>
class
VolumeCatcherImpl
:
public
LLSingleton
<
VolumeCatcherImpl
>
{
{
friend
LLSingleton
<
VolumeCatcherImpl
>
;
friend
LLSingleton
<
VolumeCatcherImpl
>
;
...
@@ -48,8 +47,8 @@ friend LLSingleton<VolumeCatcherImpl>;
...
@@ -48,8 +47,8 @@ friend LLSingleton<VolumeCatcherImpl>;
VolumeCatcherImpl
();
VolumeCatcherImpl
();
~
VolumeCatcherImpl
();
~
VolumeCatcherImpl
();
typedef
void
(
*
set_volume_func_t
)(
F32
);
typedef
void
(
WINAPI
*
set_volume_func_t
)(
F32
);
typedef
void
(
*
set_mute_func_t
)(
bool
);
typedef
void
(
WINAPI
*
set_mute_func_t
)(
bool
);
set_volume_func_t
mSetVolumeFunc
;
set_volume_func_t
mSetVolumeFunc
;
set_mute_func_t
mSetMuteFunc
;
set_mute_func_t
mSetMuteFunc
;
...
@@ -57,7 +56,6 @@ friend LLSingleton<VolumeCatcherImpl>;
...
@@ -57,7 +56,6 @@ friend LLSingleton<VolumeCatcherImpl>;
F32
mVolume
;
F32
mVolume
;
F32
mPan
;
F32
mPan
;
};
};
VolumeCatcherImpl
::
VolumeCatcherImpl
()
VolumeCatcherImpl
::
VolumeCatcherImpl
()
:
mVolume
(
1.0
f
),
// default volume is max
:
mVolume
(
1.0
f
),
// default volume is max
mPan
(
0.
f
)
// default pan is centered
mPan
(
0.
f
)
// default pan is centered
...
@@ -77,10 +75,8 @@ VolumeCatcherImpl::~VolumeCatcherImpl()
...
@@ -77,10 +75,8 @@ VolumeCatcherImpl::~VolumeCatcherImpl()
void
VolumeCatcherImpl
::
setVolume
(
F32
volume
)
void
VolumeCatcherImpl
::
setVolume
(
F32
volume
)
{
{
//F32 left_volume = volume * min(1.f, 1.f - mPan);
//F32 right_volume = volume * max(0.f, 1.f + mPan);
mVolume
=
volume
;
mVolume
=
volume
;
if
(
mSetMuteFunc
)
if
(
mSetMuteFunc
)
{
{
mSetMuteFunc
(
volume
==
0.
f
);
mSetMuteFunc
(
volume
==
0.
f
);
...
@@ -123,3 +119,4 @@ void VolumeCatcher::pump()
...
@@ -123,3 +119,4 @@ void VolumeCatcher::pump()
// No periodic tasks are necessary for this implementation.
// No periodic tasks are necessary for this implementation.
}
}
This diff is collapsed.
Click to expand it.
indra/newview/skins/default/xui/en/panel_login.xml
+
1
−
1
View file @
a1b76518
...
@@ -13,7 +13,7 @@ top="600"
...
@@ -13,7 +13,7 @@ top="600"
</panel.string>
</panel.string>
<panel.string
<panel.string
name=
"real_url"
translate=
"false"
>
name=
"real_url"
translate=
"false"
>
http://
secondlife.com/app/login
/
http://
www.yahoo.com
/
</panel.string>
</panel.string>
<string
name=
"reg_in_client_url"
translate=
"false"
>
<string
name=
"reg_in_client_url"
translate=
"false"
>
http://secondlife.eniac15.lindenlab.com/reg-in-client/
http://secondlife.eniac15.lindenlab.com/reg-in-client/
...
...
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