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
d9431a23
Commit
d9431a23
authored
Sep 01, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auhal: cosmetics
parent
d9a2daac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+5
-5
No files found.
modules/audio_output/auhal.c
View file @
d9431a23
...
...
@@ -198,7 +198,7 @@ static int Open(vlc_object_t *obj)
p_aout
->
device_select
=
SwitchAudioDevice
;
p_sys
->
device_list
=
CFArrayCreate
(
kCFAllocatorDefault
,
NULL
,
0
,
NULL
);
/* Attach a
Listener so that we are notified of a change in the D
evice setup */
/* Attach a
listener so that we are notified of a change in the d
evice setup */
AudioObjectPropertyAddress
audioDevicesAddress
=
{
kAudioHardwarePropertyDevices
,
kAudioObjectPropertyScopeGlobal
,
kAudioObjectPropertyElementMaster
};
err
=
AudioObjectAddPropertyListener
(
kAudioObjectSystemObject
,
&
audioDevicesAddress
,
DevicesListener
,
(
void
*
)
p_aout
);
if
(
err
!=
noErr
)
...
...
@@ -1490,7 +1490,7 @@ static OSStatus RenderCallbackSPDIF(AudioDeviceID inDevice,
/*
* Callback when device list changed
*/
static
OSStatus
DevicesListener
(
AudioObjectID
inObjectID
,
UInt32
inNumberAddresses
,
const
AudioObjectPropertyAddress
inAddresses
[],
void
*
inClientData
)
static
OSStatus
DevicesListener
(
AudioObjectID
inObjectID
,
UInt32
inNumberAddresses
,
const
AudioObjectPropertyAddress
inAddresses
[],
void
*
inClientData
)
{
VLC_UNUSED
(
inObjectID
);
VLC_UNUSED
(
inNumberAddresses
);
...
...
@@ -1515,7 +1515,7 @@ static OSStatus DevicesListener(AudioObjectID inObjectID, UInt32 inNumberAddres
/*
* Callback when current device is not alive anymore
*/
static
OSStatus
DeviceAliveListener
(
AudioObjectID
inObjectID
,
UInt32
inNumberAddresses
,
const
AudioObjectPropertyAddress
inAddresses
[],
void
*
inClientData
)
static
OSStatus
DeviceAliveListener
(
AudioObjectID
inObjectID
,
UInt32
inNumberAddresses
,
const
AudioObjectPropertyAddress
inAddresses
[],
void
*
inClientData
)
{
VLC_UNUSED
(
inObjectID
);
VLC_UNUSED
(
inNumberAddresses
);
...
...
@@ -1534,7 +1534,7 @@ static OSStatus DeviceAliveListener(AudioObjectID inObjectID, UInt32 inNumberAd
/*
* Callback when streams of any audio device changed (e.g. SPDIF gets (un)available)
*/
static
OSStatus
StreamsChangedListener
(
AudioObjectID
inObjectID
,
UInt32
inNumberAddresses
,
const
AudioObjectPropertyAddress
inAddresses
[],
void
*
inClientData
)
static
OSStatus
StreamsChangedListener
(
AudioObjectID
inObjectID
,
UInt32
inNumberAddresses
,
const
AudioObjectPropertyAddress
inAddresses
[],
void
*
inClientData
)
{
OSStatus
err
=
noErr
;
UInt32
i_param_size
=
0
;
...
...
@@ -1593,7 +1593,7 @@ static OSStatus StreamsChangedListener(AudioObjectID inObjectID, UInt32 inNumbe
/*
* StreamListener: check whether the device's physical format changes on-the-fly (unlikely)
*/
static
OSStatus
StreamListener
(
AudioObjectID
inObjectID
,
UInt32
inNumberAddresses
,
const
AudioObjectPropertyAddress
inAddresses
[],
void
*
inClientData
)
static
OSStatus
StreamListener
(
AudioObjectID
inObjectID
,
UInt32
inNumberAddresses
,
const
AudioObjectPropertyAddress
inAddresses
[],
void
*
inClientData
)
{
OSStatus
err
=
noErr
;
struct
{
vlc_mutex_t
lock
;
vlc_cond_t
cond
;
}
*
w
=
inClientData
;
...
...
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