Audaspace
1.3.0
A high level audio library.
|
Go to the documentation of this file.
20 #define AUD_BUILD_PLUGIN
36 struct AVCodecContext;
38 #include <libavformat/avformat.h>
75 AVFormatContext* m_formatCtx;
80 AVCodecContext* m_codecCtx;
90 AVIOContext* m_aviocontext;
105 std::shared_ptr<Buffer> m_membuffer;
115 int64_t m_membufferpos;
179 static int64_t
seek_packet(
void* opaque, int64_t offset,
int whence);
182 virtual void seek(
int position);
void(* convert_f)(data_t *target, data_t *source, int length)
The function template for functions converting from one sample format to another, having the same par...
Definition: ConverterFunctions.h:35
Specification of a sound source.
Definition: Specification.h:110
Defines several conversion functions between different sample formats.
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Reads data to a memory buffer.
virtual ~FFMPEGReader()
Destroys the reader and closes the file.
virtual void seek(int position)
Seeks to a specific position in the source.
virtual void read(int &length, bool &eos, sample_t *buffer)
Request to read the next length samples out of the source.
This class reads a sound file via ffmpeg.
Definition: FFMPEGReader.h:50
Specification of a sound device.
Definition: Specification.h:120
This class represents a sound source as stream or as buffer which can be read for example by another ...
Definition: IReader.h:35
static int64_t seek_packet(void *opaque, int64_t offset, int whence)
Seeks within data.
FFMPEGReader(std::string filename)
Creates a new reader.
FFMPEGReader(std::shared_ptr< Buffer > buffer)
Creates a new reader.
#define AUD_PLUGIN_API
Used for exporting symbols in the shared library.
Definition: Audaspace.h:94
#define AUD_LOCAL
Used for hiding symbols from export in the shared library.
Definition: Audaspace.h:80
virtual int getLength() const
Returns an approximated length of the source in samples.
virtual bool isSeekable() const
Tells whether the source provides seeking functionality or not.
This class is a simple buffer in RAM which is 32 Byte aligned and provides resize functionality.
Definition: Buffer.h:34
unsigned char data_t
Sample data type (format samples)
Definition: Audaspace.h:129
#define AUD_NAMESPACE_END
Closes the audaspace namespace aud.
Definition: Audaspace.h:119
virtual Specs getSpecs() const
Returns the specification of the reader.
float sample_t
Sample type.(float samples)
Definition: Audaspace.h:126
#define AUD_NAMESPACE_BEGIN
Opens the audaspace namespace aud.
Definition: Audaspace.h:116
virtual int getPosition() const
Returns the position of the source as a sample count value.