Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  xith sound  (Read 1679 times)
0 Members and 1 Guest are viewing this topic.
Offline aNt

Senior Member




AFK


« Posted 2004-01-06 13:00:35 »

i have a large sound file 10mb ogg. it wont play beacause of a 'out of memory'. can xith stream audio data instead of loading it all into ram?

also  i cant seems to find anywhere to add reverb and the other effects... Sad
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #1 - Posted 2004-01-06 14:24:07 »

I remember there was a discussion related to streaming issues:

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1063036501, thread named "Sound".

This was at very early stage of Xith3D sound system, but I don't know if we have some progress with streaming since that time.

Yuri

Yuri Vl. Gushchin
JProof Group
Offline aNt

Senior Member




AFK


« Reply #2 - Posted 2004-01-06 14:40:10 »

strange it reads as if it can stream the audio.

i am playing the sound the same way as in the demo. and it seems to need to be all loaded into memory.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DavidYazel

Junior Member




Java games rock!


« Reply #3 - Posted 2004-01-06 16:38:49 »

The xith3d design supports streaming sources, but the ogg and wav loaders do not support it yet... if that makes sense.  I will add it to the long list of things to do Smiley

David Yazel
Xith3D Project Founder
http://xith3d.dev.java.net

It may look complicated, but in the end it is just a bunch of triangles
Offline aNt

Senior Member




AFK


« Reply #4 - Posted 2004-01-06 17:04:12 »

cool- also the setMaxDistance didnt see to work for me. i have an object that is around 80f height width depth. i set the MaxDistance to 100f and at -38f the sound still plays full volume, then at -39f it stops. any ideas?

1  
2  
3  
    SoundDriver soundDriver = new SoundDriverImpl();
    soundDriver.setListenerVolume(1f);
    view.setSoundDriver(soundDriver);


on me object:

1  
2  
3  
4  
5  
6  
      MediaContainer mc = new MediaContainer(bSoundName); // wav filepath
     PointSound sound = new PointSound(mc, 1);
      sound.setMaxDistance(100f);
      sound.setEnable(true);

      model.addChild(sound);


cant see where i am going wrong... Sad
Offline aNt

Senior Member




AFK


« Reply #5 - Posted 2004-01-08 13:17:44 »

bump##

gosh this still not working.. the sound turns on or off.. nothing else. no 3d fade, nothing Sad. sodding sod all!

anyone got any pointers? getting me down. i done this in a snap in joal. and i've looked at the xith src and it all looks just sweet. also the xith soundtest works! gurrr..

help! LOL Smiley  Grin
Offline aNt

Senior Member




AFK


« Reply #6 - Posted 2004-01-08 14:54:33 »

i got it working alittle bit- but as i get closer to the object the sound just kicks in. then fade from that point to 100%. but seems to start around 50% at max distance.

anyone?

the other problem was me being a muppet - joal seems not to work with stereo files.
Offline DavidYazel

Junior Member




Java games rock!


« Reply #7 - Posted 2004-01-08 17:34:37 »

OpenGL does not allow distance attenuation with anything but mono sounds.  I have that from the Gerin, the OpenGL main dev.  It makes sense when you think about it since it needs both channels to attenuate spatially.

David Yazel
Xith3D Project Founder
http://xith3d.dev.java.net

It may look complicated, but in the end it is just a bunch of triangles
Offline aNt

Senior Member




AFK


« Reply #8 - Posted 2004-01-09 07:49:40 »

well thats omething for another list then Wink.

but whats with the sound just kicking in? when at the edge of the sound zone i would of thought the sound would start at a lvl of 0 and fade up to max volume as u got closer to the sounds location.

but it seems to load and start at around (min 0f - max 1f) 0.5f, strange. i have tryed this with your test sounds with the same results.
Offline aNt

Senior Member




AFK


« Reply #9 - Posted 2004-01-09 15:00:46 »

OK sorry to say the SoundTest dont work ither. If u turn the background sound off (coss it gets in the way). and then run it. u will find when the cubes go into Z the sound cuts out before it fades to 0f.

think we have a bug. maybe a OpenAL thing- coss it looks to me like its not working.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jani Laakso

Junior Member




Do it with Java!


« Reply #10 - Posted 2004-01-12 05:14:12 »

Is there a way to change playing speed (frequency) and volume through Xith3D API's yet?
Offline aNt

Senior Member




AFK


« Reply #11 - Posted 2004-01-12 14:37:41 »

anyone mind if i look into the xith sound openal stuff? i think its maybe an openal change that we not updated.

i maybe of help yet Smiley
Offline Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #12 - Posted 2004-01-13 15:37:04 »

Quote
anyone mind if i look into the xith sound openal stuff?


Would be really great if you can check that!

I personally interested in spatialized sound, but still use Xith3D JavaSound driver.

Yuri

Yuri Vl. Gushchin
JProof Group
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (38 views)
2014-09-24 16:13:29

Pippogeek (29 views)
2014-09-24 16:12:22

Pippogeek (18 views)
2014-09-24 16:12:06

Grunnt (42 views)
2014-09-23 14:38:19

radar3301 (24 views)
2014-09-21 23:33:17

BurntPizza (61 views)
2014-09-21 02:42:18

BurntPizza (31 views)
2014-09-21 01:30:30

moogie (36 views)
2014-09-21 00:26:15

UprightPath (49 views)
2014-09-20 20:14:06

BurntPizza (53 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!