Panda3D
 All Classes Functions Variables Enumerations
ffmpegAudio.h
1 // Filename: ffmpegAudio.h
2 // Created by: jyelon (01Aug2007)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef FFMPEGAUDIO_H
16 #define FFMPEGAUDIO_H
17 
18 #include "pandabase.h"
19 #include "movieAudio.h"
20 
21 class FfmpegAudioCursor;
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : FfmpegAudio
25 // Description : A stream that generates a sequence of audio samples.
26 ////////////////////////////////////////////////////////////////////
27 class EXPCL_FFMPEG FfmpegAudio : public MovieAudio {
28 PUBLISHED:
29  FfmpegAudio(const Filename &name);
30  virtual ~FfmpegAudio();
31  virtual PT(MovieAudioCursor) open();
32 
33  static PT(MovieAudio) make(const Filename &name);
34 
35  private:
36  friend class FfmpegAudioCursor;
37 
38 public:
39  static TypeHandle get_class_type() {
40  return _type_handle;
41  }
42  static void init_type() {
43  TypedWritableReferenceCount::init_type();
44  register_type(_type_handle, "FfmpegAudio",
45  MovieAudio::get_class_type());
46  }
47  virtual TypeHandle get_type() const {
48  return get_class_type();
49  }
50  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
51 
52 private:
53  static TypeHandle _type_handle;
54 };
55 
56 #include "ffmpegAudio.I"
57 
58 #endif // FFMPEGAUDIO_H
A stream that generates a sequence of audio samples.
Definition: ffmpegAudio.h:27
A stream that generates a sequence of audio samples.
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
A MovieAudio is actually any source that provides a sequence of audio samples.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
A MovieAudio is actually any source that provides a sequence of audio samples.
Definition: movieAudio.h:48