| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- /**
- * PANDA 3D SOFTWARE
- * Copyright (c) Carnegie Mellon University. All rights reserved.
- *
- * All use of this software is subject to the terms of the revised BSD
- * license. You should have received a copy of this license along
- * with this source code in a file named "LICENSE."
- *
- * @file nullAudioSound.cxx
- * @author skyler
- * @date 2001-06-06
- * Prior system by: cary
- */
- #include "nullAudioSound.h"
- using std::string;
- TypeHandle NullAudioSound::_type_handle;
- namespace {
- static const string blank="";
- // static PN_stdfloat no_attributes [] = {0.0f,0.0f,0.0f, 0.0f,0.0f,0.0f};
- }
- /**
- * All of these functions are just stubs.
- */
- NullAudioSound::NullAudioSound() {
- // Intentionally blank.
- }
- NullAudioSound::~NullAudioSound() {
- // Intentionally blank.
- }
- void NullAudioSound::play() {
- // Intentionally blank.
- }
- void NullAudioSound::stop() {
- // Intentionally blank.
- }
- void NullAudioSound::set_loop(bool) {
- // Intentionally blank.
- }
- bool NullAudioSound::get_loop() const {
- return false;
- }
- void NullAudioSound::set_loop_count(unsigned long) {
- // Intentionally blank.
- }
- unsigned long NullAudioSound::get_loop_count() const {
- return 0;
- }
- void NullAudioSound::set_time(PN_stdfloat) {
- // Intentionally blank.
- }
- PN_stdfloat NullAudioSound::get_time() const {
- return 0;
- }
- void NullAudioSound::set_volume(PN_stdfloat) {
- // Intentionally blank.
- }
- PN_stdfloat NullAudioSound::get_volume() const {
- return 0;
- }
- void NullAudioSound::set_balance(PN_stdfloat) {
- // Intentionally blank.
- }
- PN_stdfloat NullAudioSound::get_balance() const {
- return 0;
- }
- void NullAudioSound::set_play_rate(PN_stdfloat) {
- // Intentionally blank.
- }
- PN_stdfloat NullAudioSound::get_play_rate() const {
- return 0;
- }
- void NullAudioSound::set_active(bool) {
- // Intentionally blank.
- }
- bool NullAudioSound::get_active() const {
- return false;
- }
- void NullAudioSound::set_finished_event(const string& event) {
- // Intentionally blank.
- }
- const string& NullAudioSound::get_finished_event() const {
- return blank;
- }
- const string& NullAudioSound::get_name() const {
- return blank;
- }
- PN_stdfloat NullAudioSound::length() const {
- return 0;
- }
- void NullAudioSound::set_3d_attributes(PN_stdfloat px, PN_stdfloat py, PN_stdfloat pz, PN_stdfloat vx, PN_stdfloat vy, PN_stdfloat vz) {
- // Intentionally blank.
- }
- void NullAudioSound::get_3d_attributes(PN_stdfloat *px, PN_stdfloat *py, PN_stdfloat *pz, PN_stdfloat *vx, PN_stdfloat *vy, PN_stdfloat *vz) {
- // Intentionally blank.
- }
- void NullAudioSound::set_3d_min_distance(PN_stdfloat dist) {
- // Intentionally blank.
- }
- PN_stdfloat NullAudioSound::get_3d_min_distance() const {
- // Intentionally blank.
- return 0.0f;
- }
- void NullAudioSound::set_3d_max_distance(PN_stdfloat dist) {
- // Intentionally blank.
- }
- PN_stdfloat NullAudioSound::get_3d_max_distance() const {
- // Intentionally blank.
- return 0.0f;
- }
- AudioSound::SoundStatus NullAudioSound::status() const {
- return AudioSound::READY;
- }
|