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
9ae49e3b
Commit
9ae49e3b
authored
Dec 27, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DirectSound: cosmetics
parent
45007086
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
modules/audio_output/directx.c
modules/audio_output/directx.c
+4
-5
No files found.
modules/audio_output/directx.c
View file @
9ae49e3b
...
...
@@ -130,6 +130,7 @@ typedef struct {
}
WAVEFORMATEXTENSIBLE
,
*
PWAVEFORMATEXTENSIBLE
;
#endif
DEFINE_GUID
(
_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
,
WAVE_FORMAT_IEEE_FLOAT
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
_KSDATAFORMAT_SUBTYPE_PCM
,
WAVE_FORMAT_PCM
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
DEFINE_GUID
(
_KSDATAFORMAT_SUBTYPE_DOLBY_AC3_SPDIF
,
WAVE_FORMAT_DOLBY_AC3_SPDIF
,
0x0000
,
0x0010
,
0x80
,
0x00
,
0x00
,
0xaa
,
0x00
,
0x38
,
0x9b
,
0x71
);
...
...
@@ -1128,14 +1129,11 @@ static void* DirectSoundThread( vlc_object_t *p_this )
{
notification_thread_t
*
p_notif
=
(
notification_thread_t
*
)
p_this
;
aout_instance_t
*
p_aout
=
p_notif
->
p_aout
;
bool
b_sleek
;
mtime_t
last_time
;
HRESULT
dsresult
;
long
l_queued
=
0
;
int
canc
=
vlc_savecancel
();
/* We don't want any resampling when using S/PDIF output */
b
_sleek
=
p_aout
->
output
.
output
.
i_format
==
VLC_CODEC_SPDIFL
;
b
ool
b_sleek
=
(
p_aout
->
output
.
output
.
i_format
==
VLC_CODEC_SPDIFL
)
;
msg_Dbg
(
p_notif
,
"DirectSoundThread ready"
);
...
...
@@ -1144,6 +1142,7 @@ static void* DirectSoundThread( vlc_object_t *p_this )
if
(
vlc_object_alive
(
p_notif
)
)
{
HRESULT
dsresult
;
mwait
(
p_notif
->
start_date
-
AOUT_PTS_TOLERANCE
/
2
);
/* start playing the buffer */
...
...
@@ -1170,7 +1169,7 @@ static void* DirectSoundThread( vlc_object_t *p_this )
while
(
vlc_object_alive
(
p_notif
)
)
{
DWORD
l_read
;
long
l_free_slots
;
int
l_queued
=
0
,
l_free_slots
;
unsigned
i_frame_siz
=
p_aout
->
output
.
i_nb_samples
;
mtime_t
mtime
=
mdate
();
int
i
;
...
...
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