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