Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d756feeb
Commit
d756feeb
authored
Mar 18, 2004
by
Jon Lech Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* hd1000a: channel reordering
parent
5e9bbe3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
modules/audio_output/hd1000a.cpp
modules/audio_output/hd1000a.cpp
+16
-3
No files found.
modules/audio_output/hd1000a.cpp
View file @
d756feeb
...
@@ -66,6 +66,8 @@ static void Close ( vlc_object_t * );
...
@@ -66,6 +66,8 @@ static void Close ( vlc_object_t * );
static
void
Play
(
aout_instance_t
*
);
static
void
Play
(
aout_instance_t
*
);
static
int
Thread
(
aout_instance_t
*
);
static
int
Thread
(
aout_instance_t
*
);
static
void
InterleaveS16
(
int16_t
*
,
int16_t
*
);
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
*****************************************************************************/
*****************************************************************************/
...
@@ -235,9 +237,8 @@ static int Thread( aout_instance_t * p_aout )
...
@@ -235,9 +237,8 @@ static int Thread( aout_instance_t * p_aout )
}
}
else
else
{
{
p_aout
->
p_vlc
->
pf_memcpy
(
p_sys
->
ppBuffers
[
i
],
InterleaveS16
(
(
int16_t
*
)
p_buffer
->
p_buffer
,
p_buffer
->
p_buffer
,
(
int16_t
*
)
p_sys
->
ppBuffers
[
i
]
);
p_sys
->
nBufferSize
);
aout_BufferFree
(
p_buffer
);
aout_BufferFree
(
p_buffer
);
}
}
...
@@ -253,3 +254,15 @@ static int Thread( aout_instance_t * p_aout )
...
@@ -253,3 +254,15 @@ static int Thread( aout_instance_t * p_aout )
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
/*****************************************************************************
* InterleaveS16: interleave samples
*****************************************************************************/
static
void
InterleaveS16
(
int16_t
*
p_in
,
int16_t
*
p_out
)
{
for
(
int
i
=
0
;
i
<
FRAME_SIZE
;
i
++
)
{
p_out
[
i
*
2
+
0
]
=
p_in
[
i
*
2
+
1
];
p_out
[
i
*
2
+
1
]
=
p_in
[
i
*
2
+
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