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
29f33902
Commit
29f33902
authored
Mar 07, 2012
by
Jon Stacey
Committed by
Felix Paul Kühne
Mar 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Audio: Core Audio: Initialize starting volume for analog devices.
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
97761da6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+7
-1
No files found.
modules/audio_output/auhal.c
View file @
29f33902
...
...
@@ -34,6 +34,7 @@
#include <vlc_plugin.h>
#include <vlc_dialog.h> // dialog_Fatal
#include <vlc_aout.h> // aout_*
#include <vlc_aout_intf.h>
#include <AudioUnit/AudioUnit.h> // AudioUnit
#include <CoreAudio/CoreAudio.h> // AudioDeviceID
...
...
@@ -559,7 +560,12 @@ static int OpenAnalog( audio_output_t *p_aout )
/* Do the last VLC aout setups */
aout_FormatPrepare
(
&
p_aout
->
format
);
aout_PacketInit
(
p_aout
,
&
p_sys
->
packet
,
FRAMESIZE
);
aout_VolumeHardInit
(
p_aout
,
VolumeSet
);
aout_VolumeHardInit
(
p_aout
,
VolumeSet
);
/* Initialize starting volume */
audio_volume_t
volume
=
var_InheritInteger
(
p_aout
,
"volume"
);
bool
mute
=
var_InheritBool
(
p_aout
,
"mute"
);
VolumeSet
(
p_aout
,
volume
/
(
float
)
AOUT_VOLUME_DEFAULT
,
mute
);
/* set the IOproc callback */
input
.
inputProc
=
(
AURenderCallback
)
RenderCallbackAnalog
;
...
...
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