Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mediastreamer2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
mediastreamer2
Commits
e4596609
Commit
e4596609
authored
Mar 28, 2011
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better volume terminology
parent
63788c7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
msvolume.h
include/mediastreamer2/msvolume.h
+1
-1
msvolume.c
src/msvolume.c
+1
-1
No files found.
include/mediastreamer2/msvolume.h
View file @
e4596609
...
...
@@ -70,7 +70,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define MS_VOLUME_SET_EA_TRANSMIT_THRESHOLD MS_FILTER_METHOD(MS_VOLUME_ID,17,float)
#define MS_VOLUME_
MIN_ENERGY_DB (-120)
/*arbitrary value returned when linear energy
is 0*/
#define MS_VOLUME_
DB_LOWEST (-120)
/*arbitrary value returned when linear volume
is 0*/
extern
MSFilterDesc
ms_volume_desc
;
...
...
src/msvolume.c
View file @
e4596609
...
...
@@ -116,7 +116,7 @@ static void volume_uninit(MSFilter *f){
}
static
inline
float
linear_to_db
(
float
linear
){
if
(
linear
==
0
)
return
MS_VOLUME_
MIN_ENERGY_DB
;
if
(
linear
==
0
)
return
MS_VOLUME_
DB_LOWEST
;
return
10
*
ortp_log10f
(
linear
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment