Rename a few controls.
The encoder controls could be confused with actual encoding, so make clear they are just settings. Also, the end point selector controls were not named very well. Change-Id: I27f8bf9c865c5f295abad97c01ef98752af42613 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Ling Hu <ling.hu@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
b834fe032f
commit
bba28afe55
@@ -70,10 +70,10 @@ QMediaControl *AudioCaptureService::requestControl(const char *name)
|
||||
if (qstrcmp(name,QMediaRecorderControl_iid) == 0)
|
||||
return m_mediaControl;
|
||||
|
||||
if (qstrcmp(name,QAudioEncoderControl_iid) == 0)
|
||||
if (qstrcmp(name,QAudioEncoderSettingsControl_iid) == 0)
|
||||
return m_encoderControl;
|
||||
|
||||
if (qstrcmp(name,QAudioEndpointSelector_iid) == 0)
|
||||
if (qstrcmp(name,QAudioEndpointSelectorControl_iid) == 0)
|
||||
return m_endpointSelector;
|
||||
|
||||
if (qstrcmp(name,QMediaContainerControl_iid) == 0)
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include <QtCore/qdebug.h>
|
||||
|
||||
AudioEncoderControl::AudioEncoderControl(QObject *parent)
|
||||
:QAudioEncoderControl(parent)
|
||||
:QAudioEncoderSettingsControl(parent)
|
||||
{
|
||||
m_session = qobject_cast<AudioCaptureSession*>(parent);
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#ifndef AUDIOENCODERCONTROL_H
|
||||
#define AUDIOENCODERCONTROL_H
|
||||
|
||||
#include "qaudioencodercontrol.h"
|
||||
#include "qaudioencodersettingscontrol.h"
|
||||
|
||||
#include <QtCore/qstringlist.h>
|
||||
#include <QtCore/qmap.h>
|
||||
@@ -53,7 +53,7 @@ class AudioCaptureSession;
|
||||
|
||||
QT_USE_NAMESPACE
|
||||
|
||||
class AudioEncoderControl : public QAudioEncoderControl
|
||||
class AudioEncoderControl : public QAudioEncoderSettingsControl
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
|
||||
|
||||
AudioEndpointSelector::AudioEndpointSelector(QObject *parent)
|
||||
:QAudioEndpointSelector(parent)
|
||||
:QAudioEndpointSelectorControl(parent)
|
||||
{
|
||||
m_session = qobject_cast<AudioCaptureSession*>(parent);
|
||||
|
||||
|
||||
@@ -44,13 +44,13 @@
|
||||
|
||||
#include <QStringList>
|
||||
|
||||
#include "qaudioendpointselector.h"
|
||||
#include "qaudioendpointselectorcontrol.h"
|
||||
|
||||
class AudioCaptureSession;
|
||||
|
||||
QT_USE_NAMESPACE
|
||||
|
||||
class AudioEndpointSelector : public QAudioEndpointSelector
|
||||
class AudioEndpointSelector : public QAudioEndpointSelectorControl
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user