Panda3D
nullAudioManager.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file nullAudioManager.cxx
10  * @author skyler
11  * @date 2001-06-06
12  * Prior system by: cary
13  */
14 
15 #include "nullAudioManager.h"
16 
17 TypeHandle NullAudioManager::_type_handle;
18 
19 // namespace { static const string blank=""; static PN_stdfloat
20 // no_listener_attributes [] = {0.0f,0.0f,0.0f, 0.0f,0.0f,0.0f,
21 // 0.0f,0.0f,0.0f, 0.0f,0.0f,0.0f}; }
22 
23 
24 /**
25  *
26  */
27 NullAudioManager::
28 NullAudioManager() {
29  audio_info("NullAudioManager");
30 }
31 
32 /**
33  *
34  */
35 NullAudioManager::
36 ~NullAudioManager() {
37  // intentionally blank.
38 }
39 
40 /**
41  *
42  */
43 bool NullAudioManager::
44 is_valid() {
45  return false;
46 }
47 
48 /**
49  *
50  */
51 PT(AudioSound) NullAudioManager::
52 get_sound(const Filename &, bool positional, int mode) {
53  return get_null_sound();
54 }
55 
56 /**
57  *
58  */
59 PT(AudioSound) NullAudioManager::
60 get_sound(MovieAudio *sound, bool positional, int mode) {
61  return get_null_sound();
62 }
63 
64 /**
65  *
66  */
67 void NullAudioManager::
68 uncache_sound(const Filename &) {
69  // intentionally blank.
70 }
71 
72 /**
73  *
74  */
75 void NullAudioManager::
76 clear_cache() {
77  // intentionally blank.
78 }
79 
80 /**
81  *
82  */
83 void NullAudioManager::
84 set_cache_limit(unsigned int) {
85  // intentionally blank.
86 }
87 
88 /**
89  *
90  */
91 unsigned int NullAudioManager::
92 get_cache_limit() const {
93  // intentionally blank.
94  return 0;
95 }
96 
97 /**
98  *
99  */
100 void NullAudioManager::
101 set_volume(PN_stdfloat) {
102  // intentionally blank.
103 }
104 
105 /**
106  *
107  */
108 PN_stdfloat NullAudioManager::
109 get_volume() const {
110  return 0;
111 }
112 
113 /**
114  *
115  */
116 void NullAudioManager::
117 set_play_rate(PN_stdfloat) {
118  // intentionally blank.
119 }
120 
121 /**
122  *
123  */
124 PN_stdfloat NullAudioManager::
125 get_play_rate() const {
126  return 0;
127 }
128 
129 /**
130  *
131  */
132 void NullAudioManager::
133 set_active(bool) {
134  // intentionally blank.
135 }
136 
137 /**
138  *
139  */
140 bool NullAudioManager::
141 get_active() const {
142  return 0;
143 }
144 
145 /**
146  *
147  */
148 void NullAudioManager::
149 set_concurrent_sound_limit(unsigned int) {
150  // intentionally blank.
151 }
152 
153 /**
154  *
155  */
156 unsigned int NullAudioManager::
157 get_concurrent_sound_limit() const {
158  return 0;
159 }
160 
161 /**
162  *
163  */
164 void NullAudioManager::
165 reduce_sounds_playing_to(unsigned int) {
166  // intentionally blank.
167 }
168 
169 /**
170  *
171  */
172 void NullAudioManager::
173 stop_all_sounds() {
174  // intentionally blank.
175 }
176 
177 /**
178  *
179  */
180 void NullAudioManager::
181 audio_3d_set_listener_attributes(PN_stdfloat px, PN_stdfloat py, PN_stdfloat pz, PN_stdfloat vx, PN_stdfloat vy, PN_stdfloat vz, PN_stdfloat fx, PN_stdfloat fy, PN_stdfloat fz, PN_stdfloat ux, PN_stdfloat uy, PN_stdfloat uz) {
182  // intentionally blank.
183 }
184 
185 /**
186  *
187  */
188 void NullAudioManager::
189 audio_3d_get_listener_attributes(PN_stdfloat *px, PN_stdfloat *py, PN_stdfloat *pz, PN_stdfloat *vx, PN_stdfloat *vy, PN_stdfloat *vz, PN_stdfloat *fx, PN_stdfloat *fy, PN_stdfloat *fz, PN_stdfloat *ux, PN_stdfloat *uy, PN_stdfloat *uz) {
190  // intentionally blank.
191 }
192 
193 /**
194  *
195  */
196 void NullAudioManager::
197 audio_3d_set_distance_factor(PN_stdfloat factor) {
198  // intentionally blank.
199 }
200 
201 /**
202  *
203  */
204 PN_stdfloat NullAudioManager::
205 audio_3d_get_distance_factor() const {
206  // intentionally blank.
207  return 0.0f;
208 }
209 
210 /**
211  *
212  */
213 void NullAudioManager::
214 audio_3d_set_doppler_factor(PN_stdfloat factor) {
215  // intentionally blank.
216 }
217 
218 /**
219  *
220  */
221 PN_stdfloat NullAudioManager::
222 audio_3d_get_doppler_factor() const {
223  // intentionally blank.
224  return 0.0f;
225 }
226 
227 /**
228  *
229  */
230 void NullAudioManager::
231 audio_3d_set_drop_off_factor(PN_stdfloat factor) {
232  // intentionally blank.
233 }
234 
235 /**
236  *
237  */
238 PN_stdfloat NullAudioManager::
239 audio_3d_get_drop_off_factor() const {
240  // intentionally blank.
241  return 0.0f;
242 }
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:39
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
A MovieAudio is actually any source that provides a sequence of audio samples.
Definition: movieAudio.h:44