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
b8214f77
Commit
b8214f77
authored
Apr 17, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auhal: volumeSet and muteSet is not supported for digital output
parent
2f8b0deb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+10
-0
No files found.
modules/audio_output/auhal.c
View file @
b8214f77
...
@@ -176,6 +176,7 @@ static int Open(vlc_object_t *obj)
...
@@ -176,6 +176,7 @@ static int Open(vlc_object_t *obj)
vlc_mutex_init
(
&
p_sys
->
lock
);
vlc_mutex_init
(
&
p_sys
->
lock
);
vlc_cond_init
(
&
p_sys
->
cond
);
vlc_cond_init
(
&
p_sys
->
cond
);
p_sys
->
b_digital
=
false
;
p_aout
->
sys
=
p_sys
;
p_aout
->
sys
=
p_sys
;
p_aout
->
start
=
Start
;
p_aout
->
start
=
Start
;
...
@@ -940,6 +941,7 @@ static void Stop(audio_output_t *p_aout)
...
@@ -940,6 +941,7 @@ static void Stop(audio_output_t *p_aout)
}
}
p_sys
->
i_bytes_per_sample
=
0
;
p_sys
->
i_bytes_per_sample
=
0
;
p_sys
->
b_digital
=
false
;
/* clean-up circular buffer */
/* clean-up circular buffer */
TPCircularBufferCleanup
(
&
p_sys
->
circular_buffer
);
TPCircularBufferCleanup
(
&
p_sys
->
circular_buffer
);
...
@@ -1092,6 +1094,10 @@ static int VolumeSet(audio_output_t * p_aout, float volume)
...
@@ -1092,6 +1094,10 @@ static int VolumeSet(audio_output_t * p_aout, float volume)
struct
aout_sys_t
*
p_sys
=
p_aout
->
sys
;
struct
aout_sys_t
*
p_sys
=
p_aout
->
sys
;
OSStatus
ostatus
;
OSStatus
ostatus
;
if
(
p_sys
->
b_digital
)
{
return
VLC_EGENERIC
;
}
aout_VolumeReport
(
p_aout
,
volume
);
aout_VolumeReport
(
p_aout
,
volume
);
/* Set volume for output unit */
/* Set volume for output unit */
...
@@ -1113,6 +1119,10 @@ static int MuteSet(audio_output_t * p_aout, bool mute)
...
@@ -1113,6 +1119,10 @@ static int MuteSet(audio_output_t * p_aout, bool mute)
struct
aout_sys_t
*
p_sys
=
p_aout
->
sys
;
struct
aout_sys_t
*
p_sys
=
p_aout
->
sys
;
OSStatus
ostatus
;
OSStatus
ostatus
;
if
(
p_sys
->
b_digital
)
{
return
VLC_EGENERIC
;
}
aout_MuteReport
(
p_aout
,
mute
);
aout_MuteReport
(
p_aout
,
mute
);
float
volume
=
.
0
;
float
volume
=
.
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