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
cd5a89ae
Commit
cd5a89ae
authored
May 11, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auhal: do not check if device 0 is alive
It will fail in any way.
parent
a071518a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+13
-13
No files found.
modules/audio_output/auhal.c
View file @
cd5a89ae
...
...
@@ -279,23 +279,23 @@ static int Start(audio_output_t *p_aout, audio_sample_format_t *restrict fmt)
msg_Dbg
(
p_aout
,
"attempting to use device %i"
,
p_sys
->
i_selected_dev
);
/* Check if the desired device is alive and usable */
i_param_size
=
sizeof
(
b_alive
);
AudioObjectPropertyAddress
audioDeviceAliveAddress
=
{
kAudioDevicePropertyDeviceIsAlive
,
kAudioObjectPropertyScopeGlobal
,
kAudioObjectPropertyElementMaster
};
err
=
AudioObjectGetPropertyData
(
p_sys
->
i_selected_dev
,
&
audioDeviceAliveAddress
,
0
,
NULL
,
&
i_param_size
,
&
b_alive
);
AudioObjectPropertyAddress
audioDeviceAliveAddress
=
{
kAudioDevicePropertyDeviceIsAlive
,
kAudioObjectPropertyScopeGlobal
,
kAudioObjectPropertyElementMaster
};
if
(
p_sys
->
i_selected_dev
>
0
)
{
/* Check if the desired device is alive and usable */
i_param_size
=
sizeof
(
b_alive
);
err
=
AudioObjectGetPropertyData
(
p_sys
->
i_selected_dev
,
&
audioDeviceAliveAddress
,
0
,
NULL
,
&
i_param_size
,
&
b_alive
);
if
(
err
!=
noErr
)
{
/* Be tolerant, only give a warning here */
msg_Warn
(
p_aout
,
"could not check whether device [0x%x] is alive [%4.4s]"
,
(
unsigned
int
)
p_sys
->
i_selected_dev
,
(
char
*
)
&
err
);
b_alive
=
false
;
}
if
(
err
!=
noErr
)
{
/* Be tolerant, only give a warning here */
msg_Warn
(
p_aout
,
"could not check whether device [0x%x] is alive [%4.4s]"
,
(
unsigned
int
)
p_sys
->
i_selected_dev
,
(
char
*
)
&
err
);
b_alive
=
false
;
if
(
!
b_alive
)
msg_Warn
(
p_aout
,
"selected audio device is not alive, switching to default device"
);
}
if
(
!
b_alive
||
p_sys
->
i_selected_dev
==
0
)
{
msg_Warn
(
p_aout
,
"selected audio device is not alive, switching to default device"
);
AudioObjectID
defaultDeviceID
=
0
;
UInt32
propertySize
=
0
;
AudioObjectPropertyAddress
defaultDeviceAddress
=
{
kAudioHardwarePropertyDefaultOutputDevice
,
kAudioDevicePropertyScopeOutput
,
kAudioObjectPropertyElementMaster
};
...
...
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