Theora Playback Library  1.1.0
TheoraAudioInterface.h
Go to the documentation of this file.
1 /************************************************************************************
2 This source file is part of the Theora Video Playback Library
3 For latest info, see http://libtheoraplayer.googlecode.com
4 *************************************************************************************
5 Copyright (c) 2008-2014 Kresimir Spes (kspes@cateia.com)
6 This program is free software; you can redistribute it and/or modify it under
7 the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause
8 *************************************************************************************/
9 #ifndef _TheoraAudioInterface_h
10 #define _TheoraAudioInterface_h
11 
12 #include "TheoraExport.h"
13 
14 class TheoraVideoClip;
15 
16 
23 {
24 public:
26  int mFreq;
31 
32  TheoraAudioInterface(TheoraVideoClip* owner, int nChannels, int freq);
33  virtual ~TheoraAudioInterface();
35 
39  virtual void insertData(float* data, int nSamples)=0;
40 };
41 
43 {
44 public:
46  virtual TheoraAudioInterface* createInstance(TheoraVideoClip* owner, int nChannels, int freq) = 0;
47 };
48 
49 
50 #endif
51 
int mFreq
PCM frequency, usualy 44100 Hz.
Definition: TheoraAudioInterface.h:26
int mNumChannels
Mono or stereo.
Definition: TheoraAudioInterface.h:28
Definition: TheoraAudioInterface.h:42
Definition: TheoraVideoClip.h:61
#define TheoraPlayerExport
Definition: TheoraExport.h:25
TheoraVideoClip * mClip
Pointer to the parent TheoraVideoClip object.
Definition: TheoraAudioInterface.h:30
Definition: TheoraAudioInterface.h:22