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
ece19198
Commit
ece19198
authored
Jan 24, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auhal: pretend to support audio device switching for demo purposes
parent
514843b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/audio_output/auhal.c
modules/audio_output/auhal.c
+7
-2
No files found.
modules/audio_output/auhal.c
View file @
ece19198
...
...
@@ -909,9 +909,12 @@ static int DeviceList(audio_output_t *p_aout, char ***namesp, char ***descsp)
*
namesp
=
names
=
xmalloc
(
sizeof
(
*
names
)
*
n
);
*
descsp
=
descs
=
xmalloc
(
sizeof
(
*
descs
)
*
n
);
char
deviceid
[
100
];
for
(
struct
audio_device_t
*
device
=
p_sys
->
devices
;
device
!=
NULL
;
device
=
device
->
next
)
{
*
(
names
++
)
=
strdup
(
device
->
name
);
sprintf
(
*
(
descs
++
),
"%d"
,
device
->
deviceid
);
sprintf
(
deviceid
,
"%i"
,
device
->
deviceid
);
*
(
names
++
)
=
strdup
(
deviceid
);
msg_Dbg
(
p_aout
,
"using device id %s"
,
deviceid
);
*
(
descs
++
)
=
strdup
(
device
->
name
);
}
msg_Dbg
(
p_aout
,
"returning a list of %i devices"
,
n
);
...
...
@@ -1040,6 +1043,8 @@ static int SwitchAudioDevice(audio_output_t *p_aout, const char *name)
{
msg_Warn
(
p_aout
,
"we should switch to device '%s'"
,
name
);
aout_DeviceReport
(
p_aout
,
name
);
return
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