#include <audio_instrument.hpp>
|
| | audio_instrument (audio_sample_rate aSampleRate, neogfx::instrument aInstrument, float aAmplitude=1.0f) |
| |
| | audio_instrument (i_audio_device const &aDevice, neogfx::instrument aInstrument, float aAmplitude=1.0f) |
| |
| time_point | play_note (note aNote, std::chrono::duration< double > const &aDuration, float aAmplitude=1.0f) final |
| |
| time_point | play_note (std::chrono::duration< double > const &aWhen, note aNote, std::chrono::duration< double > const &aDuration, float aAmplitude=1.0f) final |
| |
| time_point | play_note (time_point aWhen, note aNote, std::chrono::duration< double > const &aDuration, float aAmplitude=1.0f) final |
| |
| time_point | rest (std::chrono::duration< double > const &aDuration) final |
| |
| audio_frame_count | length () const final |
| |
| void | generate (audio_channel aChannel, audio_frame_count aFrameCount, float *aOutputFrames) final |
| |
| void | generate_from (audio_channel aChannel, audio_frame_index aFrameFrom, audio_frame_count aFrameCount, float *aOutputFrames) final |
| |
| | audio_bitstream (audio_sample_rate aSampleRate, float aAmplitude=1.0f) |
| |
| | audio_bitstream (i_audio_device const &aDevice, float aAmplitude=1.0f) |
| |
| | ~audio_bitstream () |
| |
| audio_sample_rate | sample_rate () const final |
| |
| void | set_sample_rate (audio_sample_rate aSampleRate) override |
| |
| float | amplitude () const final |
| |
| void | set_amplitude (float aAmplitude) final |
| |
| bool | has_envelope () const final |
| |
| adsr_envelope const & | envelope () const final |
| |
| void | clear_envelope () final |
| |
| void | set_envelope (adsr_envelope const &aEnvelope) final |
| |
| | reference_counted () noexcept |
| |
| | reference_counted (const reference_counted &aOther) noexcept |
| |
| | ~reference_counted () |
| |
| reference_counted & | operator= (const reference_counted &) |
| |
| void | add_ref () const noexcept override |
| |
| void | release () const override |
| |
| int32_t | use_count () const noexcept override |
| |
| const base_type * | release_and_take_ownership () const override |
| |
| base_type * | release_and_take_ownership () override |
| |
| void | pin () const noexcept override |
| |
| void | unpin () const override |
| |
| i_ref_control_block & | control_block () override |
| |
Definition at line 29 of file audio_instrument.hpp.
◆ audio_instrument() [1/2]
◆ audio_instrument() [2/2]
◆ generate()
◆ generate_from()
◆ length()
◆ play_note() [1/3]
| time_point neogfx::audio_instrument::play_note |
( |
note |
aNote, |
|
|
std::chrono::duration< double > const & |
aDuration, |
|
|
float |
aAmplitude = 1.0f |
|
) |
| |
|
final |
◆ play_note() [2/3]
| time_point neogfx::audio_instrument::play_note |
( |
std::chrono::duration< double > const & |
aWhen, |
|
|
note |
aNote, |
|
|
std::chrono::duration< double > const & |
aDuration, |
|
|
float |
aAmplitude = 1.0f |
|
) |
| |
|
final |
◆ play_note() [3/3]
| time_point neogfx::audio_instrument::play_note |
( |
time_point |
aWhen, |
|
|
note |
aNote, |
|
|
std::chrono::duration< double > const & |
aDuration, |
|
|
float |
aAmplitude = 1.0f |
|
) |
| |
|
final |
◆ rest()
| time_point neogfx::audio_instrument::rest |
( |
std::chrono::duration< double > const & |
aDuration | ) |
|
|
final |
The documentation for this class was generated from the following file: