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
853cb655
Commit
853cb655
authored
Apr 14, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auhal: remove write-only code
parent
810446ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+0
-26
No files found.
modules/audio_output/auhal.c
View file @
853cb655
...
@@ -109,20 +109,10 @@ struct aout_sys_t
...
@@ -109,20 +109,10 @@ struct aout_sys_t
int
i_rate
;
/* media sample rate */
int
i_rate
;
/* media sample rate */
int
i_bytes_per_sample
;
int
i_bytes_per_sample
;
struct
audio_device_t
*
devices
;
vlc_mutex_t
lock
;
vlc_mutex_t
lock
;
vlc_cond_t
cond
;
vlc_cond_t
cond
;
};
};
struct
audio_device_t
{
struct
audio_device_t
*
next
;
UInt32
deviceid
;
char
*
name
;
};
#pragma mark -
#pragma mark -
#pragma mark local prototypes & module descriptor
#pragma mark local prototypes & module descriptor
...
@@ -192,7 +182,6 @@ static int Open(vlc_object_t *obj)
...
@@ -192,7 +182,6 @@ static int Open(vlc_object_t *obj)
p_aout
->
stop
=
Stop
;
p_aout
->
stop
=
Stop
;
p_aout
->
volume_set
=
VolumeSet
;
p_aout
->
volume_set
=
VolumeSet
;
p_aout
->
mute_set
=
MuteSet
;
p_aout
->
mute_set
=
MuteSet
;
p_aout
->
sys
->
devices
=
NULL
;
p_aout
->
device_select
=
SwitchAudioDevice
;
p_aout
->
device_select
=
SwitchAudioDevice
;
/* Attach a Listener so that we are notified of a change in the Device setup */
/* Attach a Listener so that we are notified of a change in the Device setup */
...
@@ -235,12 +224,6 @@ static void Close(vlc_object_t *obj)
...
@@ -235,12 +224,6 @@ static void Close(vlc_object_t *obj)
config_PutPsz
(
p_aout
,
"auhal-audio-device"
,
aout_DeviceGet
(
p_aout
));
config_PutPsz
(
p_aout
,
"auhal-audio-device"
,
aout_DeviceGet
(
p_aout
));
for
(
struct
audio_device_t
*
device
=
p_sys
->
devices
,
*
next
;
device
!=
NULL
;
device
=
next
)
{
next
=
device
->
next
;
free
(
device
->
name
);
free
(
device
);
}
vlc_mutex_destroy
(
&
p_sys
->
lock
);
vlc_mutex_destroy
(
&
p_sys
->
lock
);
vlc_cond_destroy
(
&
p_sys
->
cond
);
vlc_cond_destroy
(
&
p_sys
->
cond
);
...
@@ -983,15 +966,6 @@ static void RebuildDeviceList(audio_output_t * p_aout)
...
@@ -983,15 +966,6 @@ static void RebuildDeviceList(audio_output_t * p_aout)
struct
aout_sys_t
*
p_sys
=
p_aout
->
sys
;
struct
aout_sys_t
*
p_sys
=
p_aout
->
sys
;
if
(
p_sys
->
devices
)
{
for
(
struct
audio_device_t
*
device
=
p_sys
->
devices
,
*
next
;
device
!=
NULL
;
device
=
next
)
{
next
=
device
->
next
;
free
(
device
->
name
);
free
(
device
);
}
}
p_sys
->
devices
=
NULL
;
/* Get number of devices */
/* Get number of devices */
AudioObjectPropertyAddress
audioDevicesAddress
=
{
kAudioHardwarePropertyDevices
,
kAudioObjectPropertyScopeGlobal
,
kAudioObjectPropertyElementMaster
};
AudioObjectPropertyAddress
audioDevicesAddress
=
{
kAudioHardwarePropertyDevices
,
kAudioObjectPropertyScopeGlobal
,
kAudioObjectPropertyElementMaster
};
err
=
AudioObjectGetPropertyDataSize
(
kAudioObjectSystemObject
,
&
audioDevicesAddress
,
0
,
NULL
,
&
propertySize
);
err
=
AudioObjectGetPropertyDataSize
(
kAudioObjectSystemObject
,
&
audioDevicesAddress
,
0
,
NULL
,
&
propertySize
);
...
...
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