DeviceManager /

#includecinder/audio/Device.h

Platform-specific Singleton for managing hardware devices. Applications normally should not need to use this, but instead should use the equivalent methods from Device .


Public Member Functions

  • ~DeviceManager ()
  • findDeviceByName (const std::string &name, bool supportsOutput, bool supportsInput)
  • findDeviceByKey (const std::string &key)
  • const std::vector< DeviceRef > &
    getDevices ()=0
  • getDefaultOutput ()=0
  • getDefaultInput ()=0
  • std::string
    getName (const DeviceRef &device)=0
  • size_t
    getNumInputChannels (const DeviceRef &device)=0
  • size_t
    getNumOutputChannels (const DeviceRef &device)=0
  • size_t
    getSampleRate (const DeviceRef &device)=0
  • size_t
    getFramesPerBlock (const DeviceRef &device)=0
  • void
    setSampleRate (const DeviceRef &device, size_t sampleRate)=0
  • void
    setFramesPerBlock (const DeviceRef &device, size_t framesPerBlock)=0
  • signals::Signal< void()> &
    getSignalInterruptionBegan ()
  • signals::Signal< void()> &
    getSignalInterruptionEnded ()

Protected Member Functions

  • DeviceManager ()
  • addDevice (const std::string &key)
  • void
    emitParamsWillChange (const DeviceRef &device)
  • void
    emitParamsDidChange (const DeviceRef &device)

Protected Attributes