Panda3D
Loading...
Searching...
No Matches
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
17TypeHandle 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 */
27NullAudioManager::
28NullAudioManager() {
29 audio_info("NullAudioManager");
30}
31
32/**
33 *
34 */
35NullAudioManager::
36~NullAudioManager() {
37 // intentionally blank.
38}
39
40/**
41 *
42 */
43bool NullAudioManager::
44is_valid() {
45 return false;
46}
47
48/**
49 *
50 */
51PT(AudioSound) NullAudioManager::
52get_sound(const Filename &, bool positional, int mode) {
53 return get_null_sound();
54}
55
56/**
57 *
58 */
59PT(AudioSound) NullAudioManager::
60get_sound(MovieAudio *sound, bool positional, int mode) {
61 return get_null_sound();
62}
63
64/**
65 *
66 */
67void NullAudioManager::
68uncache_sound(const Filename &) {
69 // intentionally blank.
70}
71
72/**
73 *
74 */
75void NullAudioManager::
76clear_cache() {
77 // intentionally blank.
78}
79
80/**
81 *
82 */
83void NullAudioManager::
84set_cache_limit(unsigned int) {
85 // intentionally blank.
86}
87
88/**
89 *
90 */
91unsigned int NullAudioManager::
92get_cache_limit() const {
93 // intentionally blank.
94 return 0;
95}
96
97/**
98 *
99 */
100void NullAudioManager::
101set_volume(PN_stdfloat) {
102 // intentionally blank.
103}
104
105/**
106 *
107 */
108PN_stdfloat NullAudioManager::
109get_volume() const {
110 return 0;
111}
112
113/**
114 *
115 */
116void NullAudioManager::
117set_play_rate(PN_stdfloat) {
118 // intentionally blank.
119}
120
121/**
122 *
123 */
124PN_stdfloat NullAudioManager::
125get_play_rate() const {
126 return 0;
127}
128
129/**
130 *
131 */
132void NullAudioManager::
133set_active(bool) {
134 // intentionally blank.
135}
136
137/**
138 *
139 */
140bool NullAudioManager::
141get_active() const {
142 return 0;
143}
144
145/**
146 *
147 */
148void NullAudioManager::
149set_concurrent_sound_limit(unsigned int) {
150 // intentionally blank.
151}
152
153/**
154 *
155 */
156unsigned int NullAudioManager::
157get_concurrent_sound_limit() const {
158 return 0;
159}
160
161/**
162 *
163 */
164void NullAudioManager::
165reduce_sounds_playing_to(unsigned int) {
166 // intentionally blank.
167}
168
169/**
170 *
171 */
172void NullAudioManager::
173stop_all_sounds() {
174 // intentionally blank.
175}
176
177/**
178 *
179 */
180void NullAudioManager::
181audio_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 */
188void NullAudioManager::
189audio_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 */
196void NullAudioManager::
197audio_3d_set_distance_factor(PN_stdfloat factor) {
198 // intentionally blank.
199}
200
201/**
202 *
203 */
204PN_stdfloat NullAudioManager::
205audio_3d_get_distance_factor() const {
206 // intentionally blank.
207 return 0.0f;
208}
209
210/**
211 *
212 */
213void NullAudioManager::
214audio_3d_set_doppler_factor(PN_stdfloat factor) {
215 // intentionally blank.
216}
217
218/**
219 *
220 */
221PN_stdfloat NullAudioManager::
222audio_3d_get_doppler_factor() const {
223 // intentionally blank.
224 return 0.0f;
225}
226
227/**
228 *
229 */
230void NullAudioManager::
231audio_3d_set_drop_off_factor(PN_stdfloat factor) {
232 // intentionally blank.
233}
234
235/**
236 *
237 */
238PN_stdfloat NullAudioManager::
239audio_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:44
A MovieAudio is actually any source that provides a sequence of audio samples.
Definition movieAudio.h:44
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.