Make use of the new sound_sample function arrangement.
This commit is contained in:
parent
60aaadad3f
commit
e5d3c3134b
2 changed files with 3 additions and 3 deletions
|
@ -54,9 +54,9 @@ bool FGATCVoice::LoadVoice(const string& voice) {
|
|||
|
||||
string file = voice + ".wav";
|
||||
|
||||
SoundData = new SGSoundSample( path.c_str(), file.c_str(), false );
|
||||
SoundData = new SGSoundSample();
|
||||
rawSoundData = (char *)SoundData->load_file(path.c_str(), file.c_str());
|
||||
rawDataSize = SoundData->get_size();
|
||||
rawSoundData = SoundData->get_data();
|
||||
|
||||
path = globals->get_fg_root();
|
||||
string wordPath = "ATC/" + voice + ".vce";
|
||||
|
|
|
@ -65,7 +65,7 @@ void FGClouds::set_update_event(int count) {
|
|||
|
||||
void FGClouds::init(void) {
|
||||
if( snd_lightning == NULL ) {
|
||||
snd_lightning = new SGSoundSample(globals->get_fg_root().c_str(), "Sounds/thunder.wav", true);
|
||||
snd_lightning = new SGSoundSample(globals->get_fg_root().c_str(), "Sounds/thunder.wav");
|
||||
snd_lightning->set_max_dist(7000.0f);
|
||||
snd_lightning->set_reference_dist(3000.0f);
|
||||
SGSoundMgr *soundMgr = globals->get_soundmgr();
|
||||
|
|
Loading…
Add table
Reference in a new issue