Cinder  0.9.1
Public Member Functions | List of all members
cinder::audio::Device::Format Struct Reference

#include <Device.h>

Public Member Functions

 Format ()
 
FormatsampleRate (size_t sr)
 
FormatframesPerBlock (size_t frames)
 
size_t getSampleRate () const
 
size_t getFramesPerBlock () const
 

Detailed Description

Defines the format parameters that are settable when passed in with updateFormat()

Constructor & Destructor Documentation

cinder::audio::Device::Format::Format ( )

Member Function Documentation

Format& cinder::audio::Device::Format::sampleRate ( size_t  sr)

Sets the samplerate if the Format.

Format& cinder::audio::Device::Format::framesPerBlock ( size_t  frames)

Sets the frames per block if the Format (only functional on Mac).

size_t cinder::audio::Device::Format::getSampleRate ( ) const

Returns the samplerate of the Format.

size_t cinder::audio::Device::Format::getFramesPerBlock ( ) const

Returns the frames per block of the Format.


The documentation for this struct was generated from the following file: