Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
3937b40e
Commit
3937b40e
authored
Feb 25, 2014
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/pulse_audio_enc: implement get_device_list callback
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki@gmail.com
>
parent
255cf03a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
pulse_audio_enc.c
libavdevice/pulse_audio_enc.c
+7
-0
No files found.
libavdevice/pulse_audio_enc.c
View file @
3937b40e
...
@@ -167,6 +167,12 @@ static void pulse_get_output_timestamp(AVFormatContext *h, int stream, int64_t *
...
@@ -167,6 +167,12 @@ static void pulse_get_output_timestamp(AVFormatContext *h, int stream, int64_t *
*
dts
=
s
->
timestamp
-
latency
;
*
dts
=
s
->
timestamp
-
latency
;
}
}
static
int
pulse_get_device_list
(
AVFormatContext
*
h
,
AVDeviceInfoList
*
device_list
)
{
PulseData
*
s
=
h
->
priv_data
;
return
ff_pulse_audio_get_devices
(
device_list
,
s
->
server
,
1
);
}
#define OFFSET(a) offsetof(PulseData, a)
#define OFFSET(a) offsetof(PulseData, a)
#define E AV_OPT_FLAG_ENCODING_PARAM
#define E AV_OPT_FLAG_ENCODING_PARAM
...
@@ -199,6 +205,7 @@ AVOutputFormat ff_pulse_muxer = {
...
@@ -199,6 +205,7 @@ AVOutputFormat ff_pulse_muxer = {
.
write_uncoded_frame
=
pulse_write_frame
,
.
write_uncoded_frame
=
pulse_write_frame
,
.
write_trailer
=
pulse_write_trailer
,
.
write_trailer
=
pulse_write_trailer
,
.
get_output_timestamp
=
pulse_get_output_timestamp
,
.
get_output_timestamp
=
pulse_get_output_timestamp
,
.
get_device_list
=
pulse_get_device_list
,
.
flags
=
AVFMT_NOFILE
|
AVFMT_ALLOW_FLUSH
,
.
flags
=
AVFMT_NOFILE
|
AVFMT_ALLOW_FLUSH
,
.
priv_class
=
&
pulse_muxer_class
,
.
priv_class
=
&
pulse_muxer_class
,
};
};
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