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