Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
7d029e21
Commit
7d029e21
authored
Feb 15, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hd1000a: remove obsolete plugin
We already removed hd1000v, so this was not really any use.
parent
2da025de
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
1 addition
and
290 deletions
+1
-290
NEWS
NEWS
+1
-1
configure.ac
configure.ac
+0
-16
modules/LIST
modules/LIST
+0
-1
modules/audio_output/Modules.am
modules/audio_output/Modules.am
+0
-1
modules/audio_output/hd1000a.cpp
modules/audio_output/hd1000a.cpp
+0
-270
po/POTFILES.in
po/POTFILES.in
+0
-1
No files found.
NEWS
View file @
7d029e21
...
...
@@ -105,7 +105,7 @@ libVLC:
Removed modules:
* asademux: use libass only
* fake: use the new image demuxers
* hal, v4l, gapi, omapfb, hd1000v: obsolete unmaintained modules
* hal, v4l, gapi, omapfb, hd1000
a, hd1000
v: obsolete unmaintained modules
* id3tag: use taglib
* upnp: use upnp_intel
...
...
configure.ac
View file @
7d029e21
...
...
@@ -3647,22 +3647,6 @@ then
VLC_ADD_LDFLAGS([audioqueue], [-Wl,-framework,AudioToolbox,-framework,CoreFoundation])
fi
dnl
dnl Roku HD1000 audio
dnl
AC_ARG_ENABLE(hd1000a,
[ --enable-hd1000a HD1000 audio module (default enabled on HD1000)])
if test "${enable_hd1000a}" != "no" -a "${CXX}" != "" &&
(test "${SYS}" != "mingw32" -a "${SYS}" != "mingwce" ||
test "${enable_hd1000a}" = "yes")
then
AC_LANG_PUSH([C++])
AC_CHECK_HEADERS(deschutes/libraries/hdmachinex225/PCMAudioPlayer.h, [
VLC_ADD_PLUGIN([hd1000a])
AC_CHECK_LIB(HDMachineX225,main,VLC_ADD_LIBS([hd1000a],[-lHDMachineX225])) ])
AC_LANG_POP([C++])
fi
dnl
dnl JACK modules
dnl
...
...
modules/LIST
View file @
7d029e21
...
...
@@ -135,7 +135,6 @@ $Id$
* growl: announce currently playing stream to growl
* growl_udp: growl UDP notification plugin
* h264: H264 decoder
* hd1000a: audio output module for the Roku HD1000 Set-Top-Box
* headphone_channel_mixer: headphone channel mixer with virtual spatialization effect
* hildon: Maemo interface based on Hildon
* hotkeys: hotkeys control module
...
...
modules/audio_output/Modules.am
View file @
7d029e21
...
...
@@ -3,7 +3,6 @@ SOURCES_aout_file = file.c
SOURCES_oss = oss.c
SOURCES_aout_sdl = sdl.c
SOURCES_waveout = waveout.c windows_audio_common.h
SOURCES_hd1000a = hd1000a.cpp
SOURCES_portaudio = portaudio.c
SOURCES_auhal = auhal.c
SOURCES_jack = jack.c
...
...
modules/audio_output/hd1000a.cpp
deleted
100644 → 0
View file @
2da025de
/*****************************************************************************
* hd1000a.cpp : Roku HD1000 audio output
*****************************************************************************
* Copyright (C) 2004 the VideoLAN team
* $Id$
*
* Author: Jon Lech Johansen <jon-vl@nanocrew.net>
*
* 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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
extern
"C"
{
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_aout.h>
#include "aout_internal.h"
}
#include <deschutes/libraries/hdmachinex225/PCMAudioPlayer.h>
#define FRAME_SIZE 4096
/*****************************************************************************
* aout_sys_t: audio output method descriptor
*****************************************************************************
* This structure is part of the audio output thread descriptor.
* It describes the direct sound specific properties of an audio device.
*****************************************************************************/
struct
aout_sys_t
{
u32
nAlignment
;
u32
nSizeMultiple
;
u32
nBuffers
;
u32
nBufferSize
;
void
**
ppBuffers
;
u32
nNextBufferIndex
;
PCMAudioPlayer
*
pPlayer
;
};
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
void
Play
(
aout_instance_t
*
);
static
void
*
Thread
(
vlc_object_t
*
);
static
void
InterleaveS16
(
int16_t
*
,
int16_t
*
);
/*****************************************************************************
* Module descriptor
*****************************************************************************/
vlc_module_begin
()
set_shortname
(
"Roku HD1000"
)
set_description
(
N_
(
"Roku HD1000 audio output"
)
)
set_capability
(
"audio output"
,
100
)
set_category
(
CAT_AUDIO
)
set_subcategory
(
SUBCAT_AUDIO_AOUT
)
set_callbacks
(
Open
,
Close
)
vlc_module_end
()
/*****************************************************************************
* Open: open a dummy audio device
*****************************************************************************/
static
int
Open
(
vlc_object_t
*
p_this
)
{
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
p_this
;
struct
aout_sys_t
*
p_sys
;
PCMAudioPlayer
*
pPlayer
;
int
i_volume
;
/* Allocate structure */
p_aout
->
output
.
p_sys
=
p_sys
=
(
aout_sys_t
*
)
malloc
(
sizeof
(
aout_sys_t
)
);
if
(
p_aout
->
output
.
p_sys
==
NULL
)
return
VLC_ENOMEM
;
/* New PCMAudioPlayer */
p_sys
->
pPlayer
=
pPlayer
=
new
PCMAudioPlayer
();
if
(
p_sys
->
pPlayer
==
NULL
)
{
free
(
p_sys
);
return
VLC_ENOMEM
;
}
/* Get Buffer Requirements */
if
(
!
pPlayer
->
GetBufferRequirements
(
p_sys
->
nAlignment
,
p_sys
->
nSizeMultiple
,
p_sys
->
nBuffers
)
)
{
msg_Err
(
p_aout
,
"GetBufferRequirements failed"
);
delete
pPlayer
;
free
(
p_sys
);
return
VLC_EGENERIC
;
}
p_sys
->
nBuffers
=
__MIN
(
p_sys
->
nBuffers
,
4
);
p_sys
->
ppBuffers
=
(
void
**
)
malloc
(
p_sys
->
nBuffers
*
sizeof
(
void
*
)
);
if
(
p_sys
->
ppBuffers
==
NULL
)
{
delete
pPlayer
;
free
(
p_sys
);
return
VLC_ENOMEM
;
}
/* Open PCMAudioPlayer */
p_sys
->
nBufferSize
=
FRAME_SIZE
*
4
;
if
(
!
pPlayer
->
Open
(
p_sys
->
nBuffers
,
p_sys
->
nBufferSize
,
p_sys
->
ppBuffers
)
)
{
msg_Err
(
p_aout
,
"Open failed"
);
delete
pPlayer
;
free
(
p_sys
->
ppBuffers
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
p_sys
->
nNextBufferIndex
=
0
;
if
(
!
pPlayer
->
SetSampleRate
(
p_aout
->
output
.
output
.
i_rate
)
)
{
p_aout
->
output
.
output
.
i_rate
=
44100
;
if
(
!
pPlayer
->
SetSampleRate
(
p_aout
->
output
.
output
.
i_rate
)
)
{
msg_Err
(
p_aout
,
"SetSampleRate failed"
);
pPlayer
->
Close
();
delete
pPlayer
;
free
(
p_sys
->
ppBuffers
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
}
p_aout
->
output
.
output
.
i_format
=
VLC_CODEC_S16N
;
p_aout
->
output
.
i_nb_samples
=
FRAME_SIZE
;
p_aout
->
output
.
output
.
i_physical_channels
=
AOUT_CHAN_LEFT
|
AOUT_CHAN_RIGHT
;
p_aout
->
output
.
pf_play
=
Play
;
aout_VolumeSoftInit
(
p_aout
);
i_volume
=
config_GetInt
(
p_aout
->
p_libvlc
,
"volume"
);
pPlayer
->
SetVolume
(
(
u32
)
__MIN
(
i_volume
*
64
,
0xFFFF
)
);
/* Create thread and wait for its readiness. */
if
(
vlc_thread_create
(
p_aout
,
Thread
,
VLC_THREAD_PRIORITY_OUTPUT
)
)
{
msg_Err
(
p_aout
,
"cannot create OSS thread (%m)"
);
pPlayer
->
Close
();
delete
pPlayer
;
free
(
p_sys
->
ppBuffers
);
free
(
p_sys
);
return
VLC_ENOMEM
;
}
return
VLC_SUCCESS
;
}
/*****************************************************************************
* Close: close our file
*****************************************************************************/
static
void
Close
(
vlc_object_t
*
p_this
)
{
u32
i
;
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
p_this
;
struct
aout_sys_t
*
p_sys
=
p_aout
->
output
.
p_sys
;
vlc_object_kill
(
p_aout
);
vlc_thread_join
(
p_aout
);
p_aout
->
b_die
=
false
;
do
{
i
=
p_sys
->
pPlayer
->
WaitForBuffer
();
}
while
(
i
!=
0
&&
i
!=
p_sys
->
nBuffers
);
p_sys
->
pPlayer
->
Close
();
delete
p_sys
->
pPlayer
;
free
(
p_sys
->
ppBuffers
);
free
(
p_sys
);
}
/*****************************************************************************
* Play: do nothing
*****************************************************************************/
static
void
Play
(
aout_instance_t
*
p_aout
)
{
}
/*****************************************************************************
* Thread: thread used to DMA the data to the device
*****************************************************************************/
static
void
*
Thread
(
vlc_object_t
*
p_this
)
{
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
p_this
;
aout_buffer_t
*
p_buffer
;
struct
aout_sys_t
*
p_sys
=
p_aout
->
output
.
p_sys
;
PCMAudioPlayer
*
pPlayer
=
p_sys
->
pPlayer
;
int
canc
=
vlc_savecancel
();
while
(
vlc_object_alive
(
p_aout
)
)
{
pPlayer
->
WaitForBuffer
();
vlc_mutex_lock
(
&
p_aout
->
output_fifo_lock
);
p_buffer
=
aout_FifoPop
(
p_aout
,
&
p_aout
->
output
.
fifo
);
vlc_mutex_unlock
(
&
p_aout
->
output_fifo_lock
);
#define i p_sys->nNextBufferIndex
if
(
p_buffer
==
NULL
)
{
vlc_memset
(
p_aout
,
p_sys
->
ppBuffers
[
i
],
0
,
p_sys
->
nBufferSize
);
}
else
{
InterleaveS16
(
(
int16_t
*
)
p_buffer
->
p_buffer
,
(
int16_t
*
)
p_sys
->
ppBuffers
[
i
]
);
aout_BufferFree
(
p_buffer
);
}
if
(
!
pPlayer
->
QueueBuffer
(
(
s16
*
)
p_sys
->
ppBuffers
[
i
],
p_sys
->
nBufferSize
/
2
)
)
{
msg_Err
(
p_aout
,
"QueueBuffer failed"
);
}
i
=
(
i
+
1
)
%
p_sys
->
nBuffers
;
#undef i
}
vlc_restorecancel
(
canc
);
return
NULL
;
}
/*****************************************************************************
* 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
];
}
}
po/POTFILES.in
View file @
7d029e21
...
...
@@ -337,7 +337,6 @@ modules/audio_output/audioqueue.c
modules/audio_output/auhal.c
modules/audio_output/directx.c
modules/audio_output/file.c
modules/audio_output/hd1000a.cpp
modules/audio_output/jack.c
modules/audio_output/oss.c
modules/audio_output/portaudio.c
...
...
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