Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
0a930353
Commit
0a930353
authored
Oct 24, 2000
by
Renaud Dartus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modification l�g�re de la gestion du volume
parent
ad59f04f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
include/audio_output.h
include/audio_output.h
+3
-3
src/audio_output/audio_output.c
src/audio_output/audio_output.c
+5
-6
No files found.
include/audio_output.h
View file @
0a930353
...
@@ -65,10 +65,10 @@
...
@@ -65,10 +65,10 @@
#define AOUT_MAX_RATE 48000
#define AOUT_MAX_RATE 48000
/* Volume (default
100
) */
/* Volume (default
256
) */
#define VOL
100
#define VOL
256
#define VOLSTEP 5
#define VOLSTEP 5
#define VOLMAX
300
#define VOLMAX
765
/* Number of audio output frames contained in an audio output fifo.
/* Number of audio output frames contained in an audio output fifo.
* (AOUT_FIFO_SIZE + 1) must be a power of 2, in order to optimise the
* (AOUT_FIFO_SIZE + 1) must be a power of 2, in order to optimise the
...
...
src/audio_output/audio_output.c
View file @
0a930353
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* Copyright (C) 1999, 2000 VideoLAN
*
*
* Authors:
* Authors:
Michel Kaempf <maxx@via.ecp.fr>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
...
@@ -569,6 +569,7 @@ void aout_Thread_S8_Stereo( aout_thread_t * p_aout )
...
@@ -569,6 +569,7 @@ void aout_Thread_S8_Stereo( aout_thread_t * p_aout )
void
aout_Thread_U8_Mono
(
aout_thread_t
*
p_aout
)
void
aout_Thread_U8_Mono
(
aout_thread_t
*
p_aout
)
{
{
# if 0
int
i_fifo
;
int
i_fifo
;
long
l_buffer
,
l_buffer_limit
;
long
l_buffer
,
l_buffer_limit
;
long
l_units
,
l_bytes
;
long
l_units
,
l_bytes
;
...
@@ -927,7 +928,7 @@ intf_DbgMsg( "%d - p_aout->s32b %ld\n", l_buffer, (s32) ( ((s16 *)p_aout->fifo[i
...
@@ -927,7 +928,7 @@ intf_DbgMsg( "%d - p_aout->s32b %ld\n", l_buffer, (s32) ( ((s16 *)p_aout->fifo[i
}
}
}
}
vlc_mutex_unlock
(
&
p_aout
->
fifos_lock
);
vlc_mutex_unlock
(
&
p_aout
->
fifos_lock
);
#endif
}
}
void
aout_Thread_U8_Stereo
(
aout_thread_t
*
p_aout
)
void
aout_Thread_U8_Stereo
(
aout_thread_t
*
p_aout
)
...
@@ -1178,8 +1179,7 @@ void aout_Thread_U8_Stereo( aout_thread_t * p_aout )
...
@@ -1178,8 +1179,7 @@ void aout_Thread_U8_Stereo( aout_thread_t * p_aout )
for
(
l_buffer
=
0
;
l_buffer
<
l_buffer_limit
;
l_buffer
++
)
for
(
l_buffer
=
0
;
l_buffer
<
l_buffer_limit
;
l_buffer
++
)
{
{
((
u8
*
)
p_aout
->
buffer
)[
l_buffer
]
=
(
u8
)(
(
(
p_aout
->
s32_buffer
[
l_buffer
]
/
256
)
+
128
)
*
\
((
u8
*
)
p_aout
->
buffer
)[
l_buffer
]
=
(
u8
)(
(
(
p_aout
->
s32_buffer
[
l_buffer
]
/
256
)
+
128
)
*
p_aout
->
vol
/
256
);
((
float
)
p_aout
->
vol
/
100
)
);
p_aout
->
s32_buffer
[
l_buffer
]
=
0
;
p_aout
->
s32_buffer
[
l_buffer
]
=
0
;
}
}
l_bytes
=
p_aout
->
p_sys_getbufinfo
(
p_aout
,
l_buffer_limit
);
l_bytes
=
p_aout
->
p_sys_getbufinfo
(
p_aout
,
l_buffer_limit
);
...
@@ -1474,8 +1474,7 @@ void aout_Thread_S16_Stereo( aout_thread_t * p_aout )
...
@@ -1474,8 +1474,7 @@ void aout_Thread_S16_Stereo( aout_thread_t * p_aout )
for
(
l_buffer
=
0
;
l_buffer
<
l_buffer_limit
;
l_buffer
++
)
for
(
l_buffer
=
0
;
l_buffer
<
l_buffer_limit
;
l_buffer
++
)
{
{
((
s16
*
)
p_aout
->
buffer
)[
l_buffer
]
=
(
s16
)(
(
p_aout
->
s32_buffer
[
l_buffer
]
/
AOUT_MAX_FIFOS
)
*
\
((
s16
*
)
p_aout
->
buffer
)[
l_buffer
]
=
(
s16
)(
(
p_aout
->
s32_buffer
[
l_buffer
]
/
AOUT_MAX_FIFOS
)
*
p_aout
->
vol
/
256
)
;
((
float
)
p_aout
->
vol
/
100
)
)
;
p_aout
->
s32_buffer
[
l_buffer
]
=
0
;
p_aout
->
s32_buffer
[
l_buffer
]
=
0
;
}
}
...
...
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