The instantiation of this class will attempt to open a capture device and allow for extraction of sample data from this.
More...
#include <CaptureFromWav.hh>
|
|
void | setFile (std::filesystem::path file) |
| |
|
void | setLoop (bool on) |
| |
|
void | setExit (bool on) |
| |
| size_t | getSampleRate () override |
| | Returns the sample rate.
|
| |
| size_t | getChannelCount () override |
| | Sets the number of channels to attempt to open for the capture device.
|
| |
| bool | isOpen () override |
| |
| void | startCapture () override |
| |
| void | stopCapture () override |
| |
| std::vector< float > | getAvailableSamples () override |
| |
| size_t | getAvailableSamplesCount () override |
| |
| void | initialize () override |
| | Called to initialize the Object.
|
| |
| std::string | getDefaultKey () override |
| | Returns the default key for the Object when automatically instantiated in a Configuration, i.e.
|
| |
| | Object () |
| | Initializes internal data.
|
| |
| virtual | ~Object () |
| | Cleaning up internal data.
|
| |
| virtual void | accept (Visitor *visitor) |
| | Calls the visitors apply method with this as argument.
|
| |
| virtual void | traverse (Visitor *visitor) |
| | Calls the child Object's accept method, if such exist.
|
| |
| bool | isInitialized () |
| | Returns true if the Object is initialized.
|
| |
|
| template<size_t N> |
| static std::array< std::vector< float >, N > | deinterlaceSamples (std::vector< float > data) |
| | De-interlaces the input sample data into an array of N vectors each with an Nth of the original samples.
|
| |
| static std::vector< std::vector< float > > | deinterlaceSamples (std::vector< float > data, size_t N) |
| | De-interlaces the input sample data into an array of N vectors each with an Nth of the original samples.
|
| |
The instantiation of this class will attempt to open a capture device and allow for extraction of sample data from this.
◆ getAvailableSamples()
| std::vector< float > gramods::gmSound::CaptureFromWav::getAvailableSamples |
( |
| ) |
|
|
overridevirtual |
◆ getAvailableSamplesCount()
| size_t gramods::gmSound::CaptureFromWav::getAvailableSamplesCount |
( |
| ) |
|
|
overridevirtual |
◆ getChannelCount()
| size_t gramods::gmSound::CaptureFromWav::getChannelCount |
( |
| ) |
|
|
overridevirtual |
◆ getSampleRate()
| size_t gramods::gmSound::CaptureFromWav::getSampleRate |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
| void gramods::gmSound::CaptureFromWav::initialize |
( |
| ) |
|
|
overridevirtual |
Called to initialize the Object.
This should be called once only!
Sub classes should override this method to make use of set parameter data. They should also always call its base class' implementation as well.
Reimplemented from gramods::gmCore::Object.
◆ isOpen()
| bool gramods::gmSound::CaptureFromWav::isOpen |
( |
| ) |
|
|
overridevirtual |
◆ startCapture()
| void gramods::gmSound::CaptureFromWav::startCapture |
( |
| ) |
|
|
overridevirtual |
◆ stopCapture()
| void gramods::gmSound::CaptureFromWav::stopCapture |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- /home/karlu/private/program/gramods/modules/gmSound/include/gmSound/CaptureFromWav.hh
- /home/karlu/private/program/gramods/modules/gmSound/src/CaptureFromWav.cpp