Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
2a6648ee
Commit
2a6648ee
authored
May 10, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/audio_ouput/input.c: better on-the-fly switching of audio filters.
parent
f5ed9a69
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
src/audio_output/common.c
src/audio_output/common.c
+4
-1
src/audio_output/input.c
src/audio_output/input.c
+12
-0
src/audio_output/mixer.c
src/audio_output/mixer.c
+3
-5
No files found.
src/audio_output/common.c
View file @
2a6648ee
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* common.c : audio output management of common data structures
* common.c : audio output management of common data structures
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-2004 VideoLAN
* Copyright (C) 2002-2004 VideoLAN
* $Id
: common.c,v 1.19 2004/01/06 12:02:05 zorglub Exp
$
* $Id$
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -401,6 +401,9 @@ void aout_FifoDestroy( aout_instance_t * p_aout, aout_fifo_t * p_fifo )
...
@@ -401,6 +401,9 @@ void aout_FifoDestroy( aout_instance_t * p_aout, aout_fifo_t * p_fifo )
aout_BufferFree
(
p_buffer
);
aout_BufferFree
(
p_buffer
);
p_buffer
=
p_next
;
p_buffer
=
p_next
;
}
}
p_fifo
->
p_first
=
NULL
;
p_fifo
->
pp_last
=
&
p_fifo
->
p_first
;
}
}
...
...
src/audio_output/input.c
View file @
2a6648ee
...
@@ -308,9 +308,21 @@ int aout_InputPlay( aout_instance_t * p_aout, aout_input_t * p_input,
...
@@ -308,9 +308,21 @@ int aout_InputPlay( aout_instance_t * p_aout, aout_input_t * p_input,
if
(
p_input
->
b_restart
)
if
(
p_input
->
b_restart
)
{
{
aout_fifo_t
fifo
,
dummy_fifo
;
int
p_first_byte_to_mix
;
vlc_mutex_lock
(
&
p_aout
->
mixer_lock
);
vlc_mutex_lock
(
&
p_aout
->
mixer_lock
);
/* A little trick to avoid loosing our input fifo */
aout_FifoInit
(
p_aout
,
&
dummy_fifo
,
p_aout
->
mixer
.
mixer
.
i_rate
);
p_first_byte_to_mix
=
p_input
->
p_first_byte_to_mix
;
fifo
=
p_input
->
fifo
;
p_input
->
fifo
=
dummy_fifo
;
aout_InputDelete
(
p_aout
,
p_input
);
aout_InputDelete
(
p_aout
,
p_input
);
aout_InputNew
(
p_aout
,
p_input
);
aout_InputNew
(
p_aout
,
p_input
);
p_input
->
p_first_byte_to_mix
=
p_first_byte_to_mix
;
p_input
->
fifo
=
fifo
;
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
vlc_mutex_unlock
(
&
p_aout
->
mixer_lock
);
}
}
...
...
src/audio_output/mixer.c
View file @
2a6648ee
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mixer.c : audio output mixing operations
* mixer.c : audio output mixing operations
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002-2004 VideoLAN
* Copyright (C) 2002-2004 VideoLAN
* $Id
: mixer.c,v 1.30 2004/03/03 20:39:52 gbazin Exp
$
* $Id$
*
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*
...
@@ -261,16 +261,14 @@ static int MixBuffer( aout_instance_t * p_aout )
...
@@ -261,16 +261,14 @@ static int MixBuffer( aout_instance_t * p_aout )
{
{
p_input
->
p_first_byte_to_mix
=
p_buffer
->
p_buffer
;
p_input
->
p_first_byte_to_mix
=
p_buffer
->
p_buffer
;
}
}
mixer_nb_bytes
=
p_input
->
p_first_byte_to_mix
mixer_nb_bytes
=
p_input
->
p_first_byte_to_mix
-
p_buffer
->
p_buffer
;
-
p_buffer
->
p_buffer
;
if
(
!
((
i_nb_bytes
+
p_aout
->
mixer
.
mixer
.
i_bytes_per_frame
if
(
!
((
i_nb_bytes
+
p_aout
->
mixer
.
mixer
.
i_bytes_per_frame
>
mixer_nb_bytes
)
&&
>
mixer_nb_bytes
)
&&
(
i_nb_bytes
<
p_aout
->
mixer
.
mixer
.
i_bytes_per_frame
(
i_nb_bytes
<
p_aout
->
mixer
.
mixer
.
i_bytes_per_frame
+
mixer_nb_bytes
))
)
+
mixer_nb_bytes
))
)
{
{
msg_Warn
(
p_aout
,
msg_Warn
(
p_aout
,
"mixer start isn't output start ("
I64Fd
")"
,
"mixer start isn't output start ("
I64Fd
")"
,
i_nb_bytes
-
mixer_nb_bytes
);
i_nb_bytes
-
mixer_nb_bytes
);
/* Round to the nearest multiple */
/* Round to the nearest multiple */
...
...
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