raDIYo 0.4
SWPlayerControl Class Reference
Inheritance diagram for SWPlayerControl:
SWAbstractControl

Public Slots

void onDialClicked () override
 
void onDialValueChanged (int value) override
 
void onAudioProbed (QAudioBuffer audiobuffer)
 
void onSpectrumReady (const SWDoubleVec &spectrum)
 
- Public Slots inherited from SWAbstractControl
virtual bool acceptDial ()
 
virtual void onDialClicked ()
 Wird aufgerufen, wenn das (externe) Dial geklickt wurde. More...
 
virtual void onDialValueChanged (int value)
 Wird aufgerufen, wenn das (externe) Dial gedreht wurde. More...
 

Public Member Functions

 SWPlayerControl (SWRaDIYoMainWidget *parent)
 
void startPlaying (const QString &urlText)
 SWPlayerControl::startPlaying: Erwartet eine ordentliche URL als String. More...
 
void stopPlaying ()
 
void loadSettings ()
 
void saveSettings ()
 
- Public Member Functions inherited from SWAbstractControl
 SWAbstractControl (SWRaDIYoMainWidget *parent)
 
virtual void fadeIn ()
 
virtual void fadeOut ()
 

Protected Attributes

int _volume = 0
 
QMediaPlayer _player
 
QAudioProbe _audioProbe
 
SWFFTCalc _FFTCalc
 
- Protected Attributes inherited from SWAbstractControl
bool _acceptDial = true
 
SWRaDIYoMainWidget_controller = nullptr
 
int _value = -1
 
QGraphicsOpacityEffect * _effect = nullptr
 
QPropertyAnimation * _animFadeIn = nullptr
 
QPropertyAnimation * _animFadeOut = nullptr
 

Additional Inherited Members

- Static Protected Attributes inherited from SWAbstractControl
static const int SWFADINGDURATION = 650
 

Detailed Description

Definition at line 34 of file swplayercontrol.h.

Constructor & Destructor Documentation

◆ SWPlayerControl()

SWPlayerControl::SWPlayerControl ( SWRaDIYoMainWidget parent)
explicit

Definition at line 21 of file swplayercontrol.cpp.

◆ ~SWPlayerControl()

SWPlayerControl::~SWPlayerControl ( )
virtual

Definition at line 39 of file swplayercontrol.cpp.

Member Function Documentation

◆ loadSettings()

void SWPlayerControl::loadSettings ( )

Definition at line 44 of file swplayercontrol.cpp.

◆ onAudioProbed

void SWPlayerControl::onAudioProbed ( QAudioBuffer  audiobuffer)
slot

Definition at line 70 of file swplayercontrol.cpp.

◆ onDialClicked

void SWPlayerControl::onDialClicked ( )
overrideslot

Definition at line 54 of file swplayercontrol.cpp.

◆ onDialValueChanged

void SWPlayerControl::onDialValueChanged ( int  value)
overrideslot

Definition at line 61 of file swplayercontrol.cpp.

◆ onSpectrumReady

void SWPlayerControl::onSpectrumReady ( const SWDoubleVec &  spectrum)
slot

Definition at line 78 of file swplayercontrol.cpp.

◆ saveSettings()

void SWPlayerControl::saveSettings ( )

Definition at line 49 of file swplayercontrol.cpp.

◆ startPlaying()

void SWPlayerControl::startPlaying ( const QString &  urlText)

SWPlayerControl::startPlaying: Erwartet eine ordentliche URL als String.

Parameters
urlText

Definition at line 113 of file swplayercontrol.cpp.

◆ stopPlaying()

void SWPlayerControl::stopPlaying ( )

Definition at line 125 of file swplayercontrol.cpp.

Member Data Documentation

◆ _audioProbe

QAudioProbe SWPlayerControl::_audioProbe
protected

Definition at line 63 of file swplayercontrol.h.

◆ _FFTCalc

SWFFTCalc SWPlayerControl::_FFTCalc
protected

Definition at line 65 of file swplayercontrol.h.

◆ _player

QMediaPlayer SWPlayerControl::_player
protected

Definition at line 62 of file swplayercontrol.h.

◆ _volume

int SWPlayerControl::_volume = 0
protected

Definition at line 61 of file swplayercontrol.h.


The documentation for this class was generated from the following files: