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
f86056ee
Commit
f86056ee
authored
Jul 19, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
waveout: use softare amplification
parent
0b087d21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
30 deletions
+38
-30
modules/audio_output/waveout.c
modules/audio_output/waveout.c
+38
-30
No files found.
modules/audio_output/waveout.c
View file @
f86056ee
...
@@ -82,33 +82,6 @@ static const wchar_t device_name_fmt[] = L"%ls ($%x,$%x)";
...
@@ -82,33 +82,6 @@ static const wchar_t device_name_fmt[] = L"%ls ($%x,$%x)";
static
const
char
*
const
ppsz_adev
[]
=
{
"wavemapper"
,
};
static
const
char
*
const
ppsz_adev
[]
=
{
"wavemapper"
,
};
static
const
char
*
const
ppsz_adev_text
[]
=
{
N_
(
"Microsoft Soundmapper"
)
};
static
const
char
*
const
ppsz_adev_text
[]
=
{
N_
(
"Microsoft Soundmapper"
)
};
/*****************************************************************************
* Module descriptor
*****************************************************************************/
#define DEVICE_TEXT N_("Select Audio Device")
#define DEVICE_LONG N_("Select special Audio device, or let windows "\
"decide (default), change needs VLC restart "\
"to apply.")
#define DEFAULT_AUDIO_DEVICE N_("Default Audio Device")
vlc_module_begin
()
set_shortname
(
"WaveOut"
)
set_description
(
N_
(
"Win32 waveOut extension output"
)
)
set_capability
(
"audio output"
,
50
)
set_category
(
CAT_AUDIO
)
set_subcategory
(
SUBCAT_AUDIO_AOUT
)
add_string
(
"waveout-audio-device"
,
"wavemapper"
,
DEVICE_TEXT
,
DEVICE_LONG
,
false
)
change_string_list
(
ppsz_adev
,
ppsz_adev_text
,
ReloadWaveoutDevices
)
change_action_add
(
ReloadWaveoutDevices
,
N_
(
"Refresh list"
)
)
add_bool
(
"waveout-float32"
,
true
,
FLOAT_TEXT
,
FLOAT_LONGTEXT
,
true
)
set_callbacks
(
Open
,
Close
)
vlc_module_end
()
/*****************************************************************************
/*****************************************************************************
* aout_sys_t: waveOut audio output method descriptor
* aout_sys_t: waveOut audio output method descriptor
*****************************************************************************
*****************************************************************************
...
@@ -141,13 +114,48 @@ struct aout_sys_t
...
@@ -141,13 +114,48 @@ struct aout_sys_t
uint8_t
*
p_silence_buffer
;
/* buffer we use to play silence */
uint8_t
*
p_silence_buffer
;
/* buffer we use to play silence */
union
{
float
volume
;
float
volume
;
float
soft_gain
;
};
union
{
bool
mute
;
bool
mute
;
bool
soft_mute
;
};
bool
b_chan_reorder
;
/* do we need channel reordering */
bool
b_chan_reorder
;
/* do we need channel reordering */
int
pi_chan_table
[
AOUT_CHAN_MAX
];
int
pi_chan_table
[
AOUT_CHAN_MAX
];
};
};
#include "volume.h"
/*****************************************************************************
* Module descriptor
*****************************************************************************/
#define DEVICE_TEXT N_("Select Audio Device")
#define DEVICE_LONG N_("Select special Audio device, or let windows "\
"decide (default), change needs VLC restart "\
"to apply.")
#define DEFAULT_AUDIO_DEVICE N_("Default Audio Device")
vlc_module_begin
()
set_shortname
(
"WaveOut"
)
set_description
(
N_
(
"Win32 waveOut extension output"
)
)
set_capability
(
"audio output"
,
50
)
set_category
(
CAT_AUDIO
)
set_subcategory
(
SUBCAT_AUDIO_AOUT
)
add_string
(
"waveout-audio-device"
,
"wavemapper"
,
DEVICE_TEXT
,
DEVICE_LONG
,
false
)
change_string_list
(
ppsz_adev
,
ppsz_adev_text
,
ReloadWaveoutDevices
)
change_action_add
(
ReloadWaveoutDevices
,
N_
(
"Refresh list"
)
)
add_sw_gain
(
)
add_bool
(
"waveout-float32"
,
true
,
FLOAT_TEXT
,
FLOAT_LONGTEXT
,
true
)
set_callbacks
(
Open
,
Close
)
vlc_module_end
()
/*****************************************************************************
/*****************************************************************************
* Open: open the audio device
* Open: open the audio device
*****************************************************************************
*****************************************************************************
...
@@ -310,7 +318,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -310,7 +318,7 @@ static int Open( vlc_object_t *p_this )
}
}
else
else
#endif
#endif
aout_
VolumeSoft
Init
(
p_aout
);
aout_
SoftVolume
Init
(
p_aout
);
}
}
waveOutReset
(
p_aout
->
sys
->
h_waveout
);
waveOutReset
(
p_aout
->
sys
->
h_waveout
);
...
...
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