WMF: each media player now has its own volume.
Instead of setting the volume on the audio session, which is shared by all QMediaPlayers, we now set the volume on the media player's own audio stream. This results in all QMediaPlayers correctly having independent volumes. [ChangeLog][QtMultimedia][Windows] QMediaPlayer::setVolume() does not affect the volume of other QMediaPlayers anymore. Task-number: QTBUG-30317 Change-Id: I8ea8ec47fc86127da01dc5c8247fb6f72c834630 Reviewed-by: Wouter Huysentruit <wouter_huysentruit@hotmail.com> Reviewed-by: Andy Nichols <andy.nichols@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
a07530d606
commit
7d894ca0aa
@@ -152,7 +152,7 @@ private:
|
||||
IMFPresentationClock *m_presentationClock;
|
||||
IMFRateControl *m_rateControl;
|
||||
IMFRateSupport *m_rateSupport;
|
||||
IMFSimpleAudioVolume *m_volumeControl;
|
||||
IMFAudioStreamVolume *m_volumeControl;
|
||||
IPropertyStore *m_netsourceStatistics;
|
||||
PROPVARIANT m_varStart;
|
||||
UINT64 m_duration;
|
||||
@@ -218,6 +218,8 @@ private:
|
||||
int m_volume;
|
||||
bool m_muted;
|
||||
|
||||
void setVolumeInternal(int volume);
|
||||
|
||||
void createSession();
|
||||
void setupPlaybackTopology(IMFMediaSource *source, IMFPresentationDescriptor *sourcePD);
|
||||
IMFTopologyNode* addSourceNode(IMFTopology* topology, IMFMediaSource* source,
|
||||
|
||||
Reference in New Issue
Block a user