swift
Public Member Functions | List of all members
swift::sound::sample_provider::CVolumeSampleProvider Class Reference

Pink noise generator. More...

Inheritance diagram for swift::sound::sample_provider::CVolumeSampleProvider:
[legend]

Public Member Functions

 CVolumeSampleProvider (ISampleProvider *sourceProvider, QObject *parent=nullptr)
 Noise generator.
 
virtual int readSamples (QVector< float > &samples, qint64 count)
 Read samples. More...
 
double getGainRatio () const
 Gain ratio, value a amplitude need to be multiplied with. More...
 
bool setGainRatio (double gainRatio)
 Gain ratio, value a amplitude need to be multiplied with. More...
 
- Public Member Functions inherited from swift::sound::sample_provider::ISampleProvider
 ISampleProvider (QObject *parent=nullptr)
 Ctor.
 
virtual ~ISampleProvider ()
 Dtor.
 
virtual bool isFinished () const
 Finished?
 

Additional Inherited Members

- Static Protected Member Functions inherited from swift::sound::sample_provider::ISampleProvider
static bool verbose ()
 Verbose logs?
 

Detailed Description

Pink noise generator.

Definition at line 15 of file volumesampleprovider.h.

Member Function Documentation

◆ getGainRatio()

double swift::sound::sample_provider::CVolumeSampleProvider::getGainRatio ( ) const
inline

Gain ratio, value a amplitude need to be multiplied with.

See also
http://www.sengpielaudio.com/calculator-amplification.htm
Remarks
gain ratio is voltage ratio/or amplitude ratio, something between 0.001-7.95 for -60dB to 80dB

Definition at line 30 of file volumesampleprovider.h.

◆ readSamples()

int swift::sound::sample_provider::CVolumeSampleProvider::readSamples ( QVector< float > &  samples,
qint64  count 
)
virtual

Read samples.

Implements swift::sound::sample_provider::ISampleProvider.

Definition at line 22 of file volumesampleprovider.cpp.

◆ setGainRatio()

bool swift::sound::sample_provider::CVolumeSampleProvider::setGainRatio ( double  gainRatio)

Gain ratio, value a amplitude need to be multiplied with.

See also
http://www.sengpielaudio.com/calculator-amplification.htm
Remarks
gain ratio is voltage ratio/or amplitude ratio, something between 0.001-7.95 for -60dB to 80dB

Definition at line 32 of file volumesampleprovider.cpp.


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