Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
4c0f3641
Commit
4c0f3641
authored
Apr 15, 2014
by
Lukasz Marek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavd/avdevice: add volume messages
Signed-off-by:
Lukasz Marek
<
lukasz.m.luki2@gmail.com
>
parent
cef11803
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
0 deletions
+53
-0
avdevice.h
libavdevice/avdevice.h
+53
-0
No files found.
libavdevice/avdevice.h
View file @
4c0f3641
...
...
@@ -154,6 +154,41 @@ enum AVAppToDevMessageType {
AV_APP_TO_DEV_PAUSE
=
MKBETAG
(
'P'
,
'A'
,
'U'
,
' '
),
AV_APP_TO_DEV_PLAY
=
MKBETAG
(
'P'
,
'L'
,
'A'
,
'Y'
),
AV_APP_TO_DEV_TOGGLE_PAUSE
=
MKBETAG
(
'P'
,
'A'
,
'U'
,
'T'
),
/**
* Volume control message.
*
* Set volume level. It may be device-dependent if volume
* is changed per stream or system wide. Per stream volume
* change is expected when possible.
*
* data: double: new volume with range of 0.0 - 1.0.
*/
AV_APP_TO_DEV_SET_VOLUME
=
MKBETAG
(
'S'
,
'V'
,
'O'
,
'L'
),
/**
* Mute control messages.
*
* Change mute state. It may be device-dependent if mute status
* is changed per stream or system wide. Per stream mute status
* change is expected when possible.
*
* data: NULL.
*/
AV_APP_TO_DEV_MUTE
=
MKBETAG
(
' '
,
'M'
,
'U'
,
'T'
),
AV_APP_TO_DEV_UNMUTE
=
MKBETAG
(
'U'
,
'M'
,
'U'
,
'T'
),
AV_APP_TO_DEV_TOGGLE_MUTE
=
MKBETAG
(
'T'
,
'M'
,
'U'
,
'T'
),
/**
* Get volume/mute messages.
*
* Force the device to send AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED or
* AV_DEV_TO_APP_MUTE_STATE_CHANGED command respectively.
*
* data: NULL.
*/
AV_APP_TO_DEV_GET_VOLUME
=
MKBETAG
(
'G'
,
'V'
,
'O'
,
'L'
),
AV_APP_TO_DEV_GET_MUTE
=
MKBETAG
(
'G'
,
'M'
,
'U'
,
'T'
),
};
/**
...
...
@@ -237,6 +272,24 @@ enum AVDevToAppMessageType {
*/
AV_DEV_TO_APP_BUFFER_READABLE
=
MKBETAG
(
'B'
,
'R'
,
'D'
,
' '
),
AV_DEV_TO_APP_BUFFER_WRITABLE
=
MKBETAG
(
'B'
,
'W'
,
'R'
,
' '
),
/**
* Mute state change message.
*
* Device informs that mute state has changed.
*
* data: int: 0 for not muted state, non-zero for muted state.
*/
AV_DEV_TO_APP_MUTE_STATE_CHANGED
=
MKBETAG
(
'C'
,
'M'
,
'U'
,
'T'
),
/**
* Volume level change message.
*
* Device informs that volume level has changed.
*
* data: double: new volume with range of 0.0 - 1.0.
*/
AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED
=
MKBETAG
(
'C'
,
'V'
,
'O'
,
'L'
),
};
/**
...
...
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