include/cinder/audio/Io.h File Reference

Go to the source code of this file.

Classes

class  cinder::audio::Io
class  cinder::audio::Target
class  cinder::audio::Source
class  cinder::audio::Loader
struct  cinder::audio::IoRegistrar
struct  cinder::audio::IoRegistrar::Inst
struct  cinder::audio::IoRegistrant< T >
struct  cinder::audio::IoRegistrant< T >::exec_register

Namespaces

namespace  cinder
namespace  cinder::audio

Typedefs

typedef shared_ptr< class Source > cinder::audio::SourceRef
typedef shared_ptr< class Loader > cinder::audio::LoaderRef
typedef HRESULT(* cinder::audio::LoaderDataCallback )(void *audioData, uint32_t dataSize, void *track, uint64_t sampleTime, uint32_t sampleDuration)

Functions

SourceRef cinder::audio::load (const std::string &path, std::string extension="")
 Loads an audio from the file path path. Optional extension parameter allows specification of a file type. For example, "mp3" would force the file to load as a MP3.
SourceRef cinder::audio::load (DataSourceRef dataSource, std::string extension="")
 Loads an audio from dataSource. Optional extension parameter allows specification of a file type. For example, "mp3" would force the file to load as a MP3.