(y 0.0)
(width 11197.0)
(height 509.0)
- (sample "rain")
+ (sample "sounds/rain.wav")
(distance_factor 0.5)
(distance_bias 100.0)
(volume 1))
(y 2808.0)
(width 334.0)
(height 259.0)
- (sample "waterfall")
+ (sample "sounds/waterfall.wav")
(distance_factor 0.100000001490116)
(distance_bias 200.0)
(volume 1))
(y 2817.0)
(width 127.0)
(height 215.0)
- (sample "waterfall")
+ (sample "sounds/waterfall.wav")
(distance_factor 0.100000001490116)
(distance_bias 200.0)
(volume 0))
(y 576.610229492188)
(width 1971.0)
(height 288.389770507812)
- (sample "rain")
+ (sample "sounds/rain.wav")
(distance_factor 0.5)
(distance_bias 100.0)
(volume 1))
(y 575.55859375)
(width 398.47265625)
(height 125.03515625)
- (sample "rain")
+ (sample "sounds/rain.wav")
(distance_factor 0.5)
(distance_bias 100.0)
(volume 1))
AmbientSound::start_playing()
{
try {
- std::string filename = "sounds/";
- filename += sample;
- filename += ".wav";
- sound_source = sound_manager->create_sound_source(filename);
+ sound_source = sound_manager->create_sound_source(sample);
if(!sound_source)
throw std::runtime_error("file not found");