Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
0142fab0
Commit
0142fab0
authored
Jan 04, 2003
by
Eric Petit
Browse files
We now check if the BSoundPlayer's buffer size is not the one we
were expecting.
parent
0bf3bdae
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/beos/AudioOutput.cpp
View file @
0142fab0
...
...
@@ -2,7 +2,7 @@
* AudioOutput.cpp: BeOS audio output
*****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: AudioOutput.cpp,v 1.2
2
200
2/12/26
1
8
:1
7:38 stippi
Exp $
* $Id: AudioOutput.cpp,v 1.2
3
200
3/01/04
1
7
:1
4:22 titer
Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -120,6 +120,13 @@ static void Play( void *aout, void *p_buffer, size_t i_size,
{
aout_buffer_t
*
p_aout_buffer
;
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
aout
;
if
(
(
int
)
i_size
!=
8
*
p_aout
->
output
.
i_nb_samples
)
{
msg_Warn
(
p_aout
,
"BSoundPlayer buffer size changed (%d -> %d)"
,
8
*
p_aout
->
output
.
i_nb_samples
,
i_size
);
p_aout
->
output
.
i_nb_samples
=
i_size
/
8
;
}
vlc_mutex_lock
(
&
p_aout
->
output_fifo_lock
);
p_aout_buffer
=
aout_FifoPop
(
p_aout
,
&
p_aout
->
output
.
fifo
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment