Panda3D
Loading...
Searching...
No Matches
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
17using std::string;
18
19TypeHandle NullAudioSound::_type_handle;
20
21namespace {
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
33NullAudioSound::~NullAudioSound() {
34 // Intentionally blank.
35}
36
37void NullAudioSound::play() {
38 // Intentionally blank.
39}
40
41void NullAudioSound::stop() {
42 // Intentionally blank.
43}
44
45void NullAudioSound::set_loop(bool) {
46 // Intentionally blank.
47}
48
49bool NullAudioSound::get_loop() const {
50 return false;
51}
52
53void NullAudioSound::set_loop_count(unsigned long) {
54 // Intentionally blank.
55}
56
57unsigned long NullAudioSound::get_loop_count() const {
58 return 0;
59}
60
61void NullAudioSound::set_time(PN_stdfloat) {
62 // Intentionally blank.
63}
64
65PN_stdfloat NullAudioSound::get_time() const {
66 return 0;
67}
68
69void NullAudioSound::set_volume(PN_stdfloat) {
70 // Intentionally blank.
71}
72
73PN_stdfloat NullAudioSound::get_volume() const {
74 return 0;
75}
76
77void NullAudioSound::set_balance(PN_stdfloat) {
78 // Intentionally blank.
79}
80
81PN_stdfloat NullAudioSound::get_balance() const {
82 return 0;
83}
84
85void NullAudioSound::set_play_rate(PN_stdfloat) {
86 // Intentionally blank.
87}
88
89PN_stdfloat NullAudioSound::get_play_rate() const {
90 return 0;
91}
92
93void NullAudioSound::set_active(bool) {
94 // Intentionally blank.
95}
96
97bool NullAudioSound::get_active() const {
98 return false;
99}
100
101void NullAudioSound::set_finished_event(const string& event) {
102 // Intentionally blank.
103}
104
105const string& NullAudioSound::get_finished_event() const {
106 return blank;
107}
108
109const string& NullAudioSound::get_name() const {
110 return blank;
111}
112
113PN_stdfloat NullAudioSound::length() const {
114 return 0;
115}
116
117void 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
121void 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
125void NullAudioSound::set_3d_min_distance(PN_stdfloat dist) {
126 // Intentionally blank.
127}
128
129PN_stdfloat NullAudioSound::get_3d_min_distance() const {
130 // Intentionally blank.
131 return 0.0f;
132}
133
134void NullAudioSound::set_3d_max_distance(PN_stdfloat dist) {
135 // Intentionally blank.
136}
137
138PN_stdfloat NullAudioSound::get_3d_max_distance() const {
139 // Intentionally blank.
140 return 0.0f;
141}
142
143AudioSound::SoundStatus NullAudioSound::status() const {
144 return AudioSound::READY;
145}
void set_time(PN_stdfloat)
Control time position within the sound, in seconds.
NullAudioSound()
All of these functions are just stubs.
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.