Panda3D
nullAudioSound.cxx
1 // Filename: nullAudioSound.cxx
2 // Created by: skyler (June 6, 2001)
3 // Prior system by: cary
4 //
5 ////////////////////////////////////////////////////////////////////
6 //
7 // PANDA 3D SOFTWARE
8 // Copyright (c) Carnegie Mellon University. All rights reserved.
9 //
10 // All use of this software is subject to the terms of the revised BSD
11 // license. You should have received a copy of this license along
12 // with this source code in a file named "LICENSE."
13 //
14 ////////////////////////////////////////////////////////////////////
15 
16 #include "nullAudioSound.h"
17 
18 TypeHandle NullAudioSound::_type_handle;
19 
20 namespace {
21  static const string blank="";
22  // static PN_stdfloat no_attributes [] = {0.0f,0.0f,0.0f, 0.0f,0.0f,0.0f};
23 }
24 
25 ////////////////////////////////////////////////////////////////////
26 // Function:
27 // Access:
28 // Description: All of these functions are just stubs.
29 ////////////////////////////////////////////////////////////////////
31  // Intentionally blank.
32 }
33 
34 NullAudioSound::~NullAudioSound() {
35  // Intentionally blank.
36 }
37 
38 void NullAudioSound::play() {
39  // Intentionally blank.
40 }
41 
42 void NullAudioSound::stop() {
43  // Intentionally blank.
44 }
45 
46 void NullAudioSound::set_loop(bool) {
47  // Intentionally blank.
48 }
49 
50 bool NullAudioSound::get_loop() const {
51  return false;
52 }
53 
54 void NullAudioSound::set_loop_count(unsigned long) {
55  // Intentionally blank.
56 }
57 
58 unsigned long NullAudioSound::get_loop_count() const {
59  return 0;
60 }
61 
62 void NullAudioSound::set_time(PN_stdfloat) {
63  // Intentionally blank.
64 }
65 
66 PN_stdfloat NullAudioSound::get_time() const {
67  return 0;
68 }
69 
70 void NullAudioSound::set_volume(PN_stdfloat) {
71  // Intentionally blank.
72 }
73 
74 PN_stdfloat NullAudioSound::get_volume() const {
75  return 0;
76 }
77 
78 void NullAudioSound::set_balance(PN_stdfloat) {
79  // Intentionally blank.
80 }
81 
82 PN_stdfloat NullAudioSound::get_balance() const {
83  return 0;
84 }
85 
86 void NullAudioSound::set_play_rate(PN_stdfloat) {
87  // Intentionally blank.
88 }
89 
90 PN_stdfloat NullAudioSound::get_play_rate() const {
91  return 0;
92 }
93 
94 void NullAudioSound::set_active(bool) {
95  // Intentionally blank.
96 }
97 
98 bool NullAudioSound::get_active() const {
99  return false;
100 }
101 
102 void NullAudioSound::set_finished_event(const string& event) {
103  // Intentionally blank.
104 }
105 
106 const string& NullAudioSound::get_finished_event() const {
107  return blank;
108 }
109 
110 const string& NullAudioSound::get_name() const {
111  return blank;
112 }
113 
114 PN_stdfloat NullAudioSound::length() const {
115  return 0;
116 }
117 
118 void NullAudioSound::set_3d_attributes(PN_stdfloat px, PN_stdfloat py, PN_stdfloat pz, PN_stdfloat vx, PN_stdfloat vy, PN_stdfloat vz) {
119  // Intentionally blank.
120 }
121 
122 void NullAudioSound::get_3d_attributes(PN_stdfloat *px, PN_stdfloat *py, PN_stdfloat *pz, PN_stdfloat *vx, PN_stdfloat *vy, PN_stdfloat *vz) {
123  // Intentionally blank.
124 }
125 
126 void NullAudioSound::set_3d_min_distance(PN_stdfloat dist) {
127  // Intentionally blank.
128 }
129 
130 PN_stdfloat NullAudioSound::get_3d_min_distance() const {
131  // Intentionally blank.
132  return 0.0f;
133 }
134 
135 void NullAudioSound::set_3d_max_distance(PN_stdfloat dist) {
136  // Intentionally blank.
137 }
138 
139 PN_stdfloat NullAudioSound::get_3d_max_distance() const {
140  // Intentionally blank.
141  return 0.0f;
142 }
143 
144 AudioSound::SoundStatus NullAudioSound::status() const {
145  return AudioSound::READY;
146 }
NullAudioSound()
All of these functions are just stubs.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85