A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://sensorium.github.io/Mozzi/doc/html/struct_stereo_output.html below:

Mozzi: StereoOutput Struct Reference

This struct encapsulates one frame of mono audio output. More...

#include <AudioOutput.h>

Detailed Description

This struct encapsulates one frame of mono audio output.

Internally, it really just boils down to two int values, but the struct provides useful API an top of that. For more detail see MonoOutput .

Definition at line 161 of file AudioOutput.h.

Public Member Functions   StereoOutput (AudioOutputStorage_t l, AudioOutputStorage_t r)   Construct an audio frame from raw values (zero-centered)
    StereoOutput ()   Default constructor. More...
  AudioOutput  portable () const __attribute__((deprecated("Sketch generates stereo output   Conversion to int operator: If used in a mono config, returns only the left channel (and gives a compile time warning). More...
  AudioOutputStorage_t  l () const   AudioOutputStorage_t  r () const   StereoOutputclip ()   See MonoOutput::clip(). More...
  Static Public Member Functions template<typename T > static StereoOutput  fromNBit (uint8_t bits, T l, T r)   See MonoOutput::fromNBit(), stereo variant.
  static StereoOutput  from8Bit (int16_t l, int16_t r)   See MonoOutput::from8Bit(), stereo variant.
  static StereoOutput  from16Bit (int16_t l, int16_t r)   See MonoOutput::from16Bit(), stereo variant.
  template<int8_t NI, int8_t NF, uint64_t RANGE, int8_t _NI, int8_t _NF, uint64_t _RANGE> static StereoOutput  fromSFix (SFix< NI, NF, RANGE > l, SFix< _NI, _NF, _RANGE > r)   See MonoOutput::fromSFix(), stereo variant. More...
  template<typename A , typename B > static StereoOutput  fromAlmostNBit (A bits, B l, B r)   See MonoOutput::fromAlmostNBit(), stereo variant.
  Constructor & Destructor Documentation ◆ StereoOutput() StereoOutput::StereoOutput ( ) inline

Default constructor.

Does not initialize the sample!

Definition at line 165 of file AudioOutput.h.

Member Function Documentation ◆ clip() ◆ fromSFix()

template<int8_t NI, int8_t NF, uint64_t RANGE, int8_t _NI, int8_t _NF, uint64_t _RANGE>

static StereoOutput StereoOutput::fromSFix ( SFix< NI, NF, RANGE >  l, SFix< _NI, _NF, _RANGE >  r  ) inlinestatic ◆ portable()

Conversion to int operator: If used in a mono config, returns only the left channel (and gives a compile time warning).

This could be turned into an operator for implicit conversion in this case. For now we chose to apply conversion on demand, only, as most of the time using StereoOutput in a mono config, is not intended.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4