Namespace for audio PCM raw data plotter. More...
Functions | |
| SP_EXPORT bool | plotAudioBuffer (const audio::SAudioBuffer &AudioBuffer, const dim::rect2di &Rect, const video::color &Color, f32 RangeFrom, f32 RangeTo) |
Namespace for audio PCM raw data plotter.
| SP_EXPORT bool sp::tool::AudioPCMPlotter::plotAudioBuffer | ( | const audio::SAudioBuffer & | AudioBuffer, | |
| const dim::rect2di & | Rect, | |||
| const video::color & | Color, | |||
| f32 | RangeFrom = 0.0f, |
|||
| f32 | RangeTo = 1.0f | |||
| ) |
Plots the given audio PCM raw buffer into the frame buffer. If you want to render it into a texture, just set a render target.
| [in] | AudioBuffer | Specifies the raw audio buffer. You can load these buffers with the "loadAudioPCMBuffer" function of the "audio::SoundDevice" class. |
| [in] | Rect | Specifies the rectangle where the output is to be plot. |
| [in] | Color | Specifies the drawing color. |
| [in] | RangeFrom | Specifies the plotting range start. By default 0.0. |
| [in] | RangeTo | Specifies the plotting range end. By default 1.0. |
1.7.1