mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
support miles with stubbed-out methods
This commit is contained in:
parent
ef35bbe354
commit
c0bc68b158
@ -40,3 +40,13 @@ AudioSound() {
|
||||
// Intentionally blank.
|
||||
}
|
||||
|
||||
|
||||
void AudioSound::
|
||||
set_3d_attributes(float px, float py, float pz, float vx, float vy, float vz) {
|
||||
// Intentionally blank.
|
||||
}
|
||||
|
||||
void AudioSound::
|
||||
get_3d_attributes(float *px, float *py, float *pz, float *vx, float *vy, float *vz) {
|
||||
// Intentionally blank.
|
||||
}
|
||||
|
@ -98,12 +98,10 @@ PUBLISHED:
|
||||
// Controls the position of this sound's emitter.
|
||||
// px, py and pz are the emitter's position.
|
||||
// vx, vy and vz are the emitter's velocity in UNITS PER SECOND (default: meters).
|
||||
// You can pass 0.0 to either value for either function to ignore that value
|
||||
// if you only want to set/get one of them for some reason.
|
||||
virtual void set_3d_attributes(float px = 0.0f, float py = 0.0f, float pz = 0.0f,
|
||||
float vx = 0.0f, float vy = 0.0f, float vz = 0.0f) = 0;
|
||||
virtual void get_3d_attributes(float px = 0.0f, float py = 0.0f, float pz = 0.0f,
|
||||
float vx = 0.0f, float vy = 0.0f, float vz = 0.0f) = 0;
|
||||
virtual void set_3d_attributes(float px, float py, float pz,
|
||||
float vx, float vy, float vz);
|
||||
virtual void get_3d_attributes(float *px, float *py, float *pz,
|
||||
float *vx, float *vy, float *vz);
|
||||
|
||||
enum SoundStatus { BAD, READY, PLAYING };
|
||||
virtual SoundStatus status() const = 0;
|
||||
|
@ -114,7 +114,7 @@ void NullAudioSound::set_3d_attributes(float px, float py, float pz, float vx, f
|
||||
// Intentionally blank.
|
||||
}
|
||||
|
||||
void NullAudioSound::get_3d_attributes(float px, float py, float pz, float vx, float vy, float vz) {
|
||||
void NullAudioSound::get_3d_attributes(float *px, float *py, float *pz, float *vx, float *vy, float *vz) {
|
||||
// Intentionally blank.
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ public:
|
||||
float length() const;
|
||||
|
||||
void set_3d_attributes(float px, float py, float pz, float vx, float vy, float vz);
|
||||
void get_3d_attributes(float px, float py, float pz, float vx, float vy, float vz);
|
||||
void get_3d_attributes(float *px, float *py, float *pz, float *vx, float *vy, float *vz);
|
||||
|
||||
AudioSound::SoundStatus status() const;
|
||||
|
||||
|
@ -272,7 +272,7 @@ load(Filename file_name) {
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
PT(AudioSound) MilesAudioManager::
|
||||
get_sound(const string& file_name) {
|
||||
get_sound(const string& file_name, bool) {
|
||||
audio_debug("MilesAudioManager::get_sound(file_name=\""<<file_name<<"\")");
|
||||
|
||||
if(!is_valid()) {
|
||||
|
@ -40,7 +40,7 @@ public:
|
||||
|
||||
bool is_valid();
|
||||
|
||||
PT(AudioSound) get_sound(const string& file_name);
|
||||
virtual PT(AudioSound) get_sound(const string& file_name, bool positional = false);
|
||||
void uncache_sound(const string& file_name);
|
||||
void clear_cache();
|
||||
void set_cache_limit(unsigned int count);
|
||||
|
Loading…
x
Reference in New Issue
Block a user