added ambient and implemented soundLoop