pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/videolan/libvlcpp/commit/0116906d78ef4d8a02c38ff51e83cfb48923a017

57469407.css" /> MediaPlayer: adapt with recent LibVLC changes · videolan/libvlcpp@0116906 · GitHub
Skip to content

Commit 0116906

Browse files
committed
MediaPlayer: adapt with recent LibVLC changes
Replace libvlc_audio_XXX_channel with libvlc_audio_XXX_stereomode The values come from an enum and are mostly compatible with older values. Add mixMode/setMixMode functions.
1 parent d75a31a commit 0116906

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
variables:
22
VLC30_IMAGE: registry.videolan.org/medialibrary:20201009131431
3-
VLC40_IMAGE: registry.videolan.org/libvlcpp-unstable:20220727093032
3+
VLC40_IMAGE: registry.videolan.org/libvlcpp-unstable:20221213095400
44

55
.common_build:
66
rules:

vlcpp/MediaPlayer.hpp

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,6 @@ class MediaPlayer : private CallbackOwner<13>, public Internal<libvlc_media_play
10321032
{
10331033
return libvlc_audio_set_track(*this, i_track) == 0;
10341034
}
1035-
#endif
10361035

10371036
/**
10381037
* Get current audio channel.
@@ -1057,6 +1056,47 @@ class MediaPlayer : private CallbackOwner<13>, public Internal<libvlc_media_play
10571056
{
10581057
return libvlc_audio_set_channel(*this, channel) == 0;
10591058
}
1059+
#else // libvlc 4.0
1060+
/**
1061+
* Get current audio stereo mode.
1062+
*
1063+
* \return the audio stereo mode
1064+
*/
1065+
libvlc_audio_output_stereomode_t stereoMode()
1066+
{
1067+
return libvlc_audio_get_stereomode(*this);
1068+
}
1069+
1070+
/**
1071+
* Set current audio stereo mode.
1072+
*
1073+
* \param mode the audio stereo mode
1074+
*/
1075+
bool setStereoMode(libvlc_audio_output_stereomode_t mode)
1076+
{
1077+
return libvlc_audio_set_stereomode(*this, mode) == 0;
1078+
}
1079+
1080+
/**
1081+
* Get current audio mix mode.
1082+
*
1083+
* \return the audio mix mode
1084+
*/
1085+
libvlc_audio_output_mixmode_t mixMode()
1086+
{
1087+
return libvlc_audio_get_mixmode(*this);
1088+
}
1089+
1090+
/**
1091+
* Set current audio mix mode.
1092+
*
1093+
* \param mode the audio mix mode
1094+
*/
1095+
bool setMixMode(libvlc_audio_output_mixmode_t mode)
1096+
{
1097+
return libvlc_audio_set_mixmode(*this, mode) == 0;
1098+
}
1099+
#endif // libvlc 4.0
10601100

10611101
/**
10621102
* Get current audio delay.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy