Examples of SoundSystem


Examples of com.tankz.systems.misc.SoundSystem

    world.setManager(new PlayerManager());
    world.setManager(new TagManager());
    world.setManager(new GroupManager());

    world.setSystem(new SoundSystem());
    world.setSystem(new HealthSystem());
    world.setSystem(new PhysicsSystem());
    world.setSystem(new ExpirationSystem());
    world.setSystem(new PlayerTankTowerSystem(container));
    world.setSystem(new PlayerTankMovementSystem(container));
View Full Code Here

Examples of de.lessvoid.nifty.sound.SoundSystem

  public Nifty(
      final RenderDevice newRenderDevice,
      final SoundDevice newSoundDevice,
      final InputSystem newInputSystem,
      final TimeProvider newTimeProvider) {
    initialize(new NiftyRenderEngineImpl(newRenderDevice), new SoundSystem(newSoundDevice), newInputSystem, newTimeProvider);
  }
View Full Code Here

Examples of games.stendhal.client.sound.system.SoundSystem

    protected SoundManager()
    {
        Algebra.mov_Vecf(mHearerPosition, 0.0f);

    mSoundSystem = new SoundSystem(null, AUDIO_FORMAT, new Time(15, Time.Unit.MILLI), USE_NUM_MIXER_LINES);
    mSoundSystem.setDaemon(true);
    mSoundSystem.start();
    }
View Full Code Here

Examples of org.hibernate.test.annotations.id.entities.SoundSystem

@SuppressWarnings("unchecked")
public class IdTest extends TestCase {
  public void testGenericGenerator() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    SoundSystem system = new SoundSystem();
    system.setBrand("Genelec");
    system.setModel("T234");
    Furniture fur = new Furniture();
    s.persist(system);
    s.persist(fur);
    tx.commit();
    s.close();

    s = openSession();
    tx = s.beginTransaction();
    system = (SoundSystem) s.get(SoundSystem.class, system.getId());
    fur = (Furniture) s.get(Furniture.class, fur.getId());
    assertNotNull(system);
    assertNotNull(fur);
    s.delete(system);
    s.delete(fur);
View Full Code Here

Examples of org.hibernate.test.annotations.id.entities.SoundSystem

@SuppressWarnings("unchecked")
public class IdTest extends TestCase {
  public void testGenericGenerator() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    SoundSystem system = new SoundSystem();
    system.setBrand("Genelec");
    system.setModel("T234");
    Furniture fur = new Furniture();
    s.persist(system);
    s.persist(fur);
    tx.commit();
    s.close();

    s = openSession();
    tx = s.beginTransaction();
    system = (SoundSystem) s.get(SoundSystem.class, system.getId());
    fur = (Furniture) s.get(Furniture.class, fur.getId());
    assertNotNull(system);
    assertNotNull(fur);
    s.delete(system);
    s.delete(fur);
View Full Code Here

Examples of org.hibernate.test.annotations.id.entities.SoundSystem

@SuppressWarnings("unchecked")
public class IdTest extends TestCase {
  public void testGenericGenerator() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    SoundSystem system = new SoundSystem();
    system.setBrand("Genelec");
    system.setModel("T234");
    Furniture fur = new Furniture();
    s.persist(system);
    s.persist(fur);
    tx.commit();
    s.close();

    s = openSession();
    tx = s.beginTransaction();
    system = (SoundSystem) s.get(SoundSystem.class, system.getId());
    fur = (Furniture) s.get(Furniture.class, fur.getId());
    assertNotNull(system);
    assertNotNull(fur);
    s.delete(system);
    s.delete(fur);
View Full Code Here

Examples of org.hibernate.test.annotations.id.sequences.entities.SoundSystem

@RequiresDialectFeature(DialectChecks.SupportsSequences.class)
public class IdTest extends TestCase {
  public void testGenericGenerator() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    SoundSystem system = new SoundSystem();
    system.setBrand( "Genelec" );
    system.setModel( "T234" );
    Furniture fur = new Furniture();
    s.persist( system );
    s.persist( fur );
    tx.commit();
    s.close();

    s = openSession();
    tx = s.beginTransaction();
    system = ( SoundSystem ) s.get( SoundSystem.class, system.getId() );
    fur = ( Furniture ) s.get( Furniture.class, fur.getId() );
    assertNotNull( system );
    assertNotNull( fur );
    s.delete( system );
    s.delete( fur );
View Full Code Here

Examples of org.hibernate.test.annotations.id.sequences.entities.SoundSystem

@SuppressWarnings("unchecked")
public class IdTest extends TestCase {
  public void testGenericGenerator() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    SoundSystem system = new SoundSystem();
    system.setBrand("Genelec");
    system.setModel("T234");
    Furniture fur = new Furniture();
    s.persist(system);
    s.persist(fur);
    tx.commit();
    s.close();

    s = openSession();
    tx = s.beginTransaction();
    system = (SoundSystem) s.get(SoundSystem.class, system.getId());
    fur = (Furniture) s.get(Furniture.class, fur.getId());
    assertNotNull(system);
    assertNotNull(fur);
    s.delete(system);
    s.delete(fur);
View Full Code Here

Examples of org.hibernate.test.annotations.id.sequences.entities.SoundSystem

@SuppressWarnings("unchecked")
public class IdTest extends TestCase {
  public void testGenericGenerator() throws Exception {
    Session s = openSession();
    Transaction tx = s.beginTransaction();
    SoundSystem system = new SoundSystem();
    system.setBrand("Genelec");
    system.setModel("T234");
    Furniture fur = new Furniture();
    s.persist(system);
    s.persist(fur);
    tx.commit();
    s.close();

    s = openSession();
    tx = s.beginTransaction();
    system = (SoundSystem) s.get(SoundSystem.class, system.getId());
    fur = (Furniture) s.get(Furniture.class, fur.getId());
    assertNotNull(system);
    assertNotNull(fur);
    s.delete(system);
    s.delete(fur);
View Full Code Here

Examples of paulscode.sound.SoundSystem

    /**
    * Sets the listener of sounds
    */
    public void setSoundListenerOrientation()
    {
        SoundSystem sndSystem = null;

        // Use reflection to get the sndManager
        if (sndSystemReflect && _soundManagerSndSystemField == null)
        {
          try
          {
            _soundManagerSndSystemField = SoundManager.class.getDeclaredField("sndSystem");
            System.out.println("VRRender: Reflected sndSystem");
          }
          catch (NoSuchFieldException e) {
            try
            {
              _soundManagerSndSystemField = SoundManager.class.getDeclaredField("b"); //obfuscated name
              System.out.println("VRRender: Reflected obfuscated b");
            }
            catch (NoSuchFieldException e1) {
              System.out.println("VRRender: got sndSystem directly");
              sndSystemReflect = false;
            };
          }
           if (_soundManagerSndSystemField != null)
             _soundManagerSndSystemField.setAccessible(true);
        }
        if(!sndSystemReflect ){
          if( this.mc.sndManager != null )
            sndSystem = this.mc.sndManager.sndSystem;
         
        }
       
       
        if (_soundManagerSndSystemField != null && this.mc.sndManager != null)
        {
      try
          {
        sndSystem = (SoundSystem)_soundManagerSndSystemField.get(this.mc.sndManager);
      }
          catch (IllegalArgumentException e) { }
          catch (IllegalAccessException e) { };
        }

        float PIOVER180 = (float)(Math.PI/180);

        Vec3 up = Vec3.createVectorHelper(0, 1, 0);
        up.rotateAroundZ(-cameraRoll * PIOVER180);
        up.rotateAroundX(-cameraPitch* PIOVER180);
        up.rotateAroundY(-cameraYaw  * PIOVER180);
        if ( sndSystem != null && this.mc.gameSettings.soundVolume != 0.0F)
        {
            sndSystem.setListenerPosition((float)renderOriginX, (float)renderOriginY, (float)renderOriginZ);

            sndSystem.setListenerOrientation(lookX, lookY, lookZ,
                            (float)up.xCoord, (float)up.yCoord, (float)up.zCoord);
        }
        if( mc.mumbleLink != null ) {
          Vec3 forward = Vec3.createVectorHelper(0, 0 , -1);
          forward.rotateAroundZ(-cameraRoll * PIOVER180);
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.