Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

.ogg and Rolloff factor

Discussion in 'Editor & General Support' started by chronopsis, Jun 10, 2006.

  1. chronopsis

    chronopsis

    Joined:
    May 1, 2006
    Posts:
    25
    i just switched some of my looping sound sources to have .ogg files rather than .mp3s, and now the Rolloff factor has no effect - the sounds just play at full volume.

    connected to that, the .ogg sounds played MUCH louder than the mp3s, requiring a volume change.

    anyone know more about using .ogg for sound sources with Rolloff?
     
  2. jeremyace

    jeremyace

    Joined:
    Oct 12, 2005
    Posts:
    1,661
    Are your ogg files stereo by any chance? Perhaps your converter mixed the mp3 to stereo? For the 3D positional effects (most likely rolloff too), the sound source has to be mono. AFAIK.

    HTH,
    -Jeremy
     
  3. chronopsis

    chronopsis

    Joined:
    May 1, 2006
    Posts:
    25
    thanks for the tip, i had forgotten to mix them down again.

    but after re-importing them as mono .oggs, it's still not working. i had this working so well with aiffs!

    adjustments to rolloff still change nothing, and the sound is no longer directional.

    is it maybe something with how amadeus makes .ogg files? all i've set is the bitrate (128)
     
  4. chronopsis

    chronopsis

    Joined:
    May 1, 2006
    Posts:
    25
    i got it to work again on another file, but i think i've found a problem/bug:

    i've set up a scene with some location sounds with working rolloffs. i then make a prefab which will be instantiated by a shootball-like script. when i try to attach a sound source to that prefab, that action seems to mess up all the other location sounds in the game, making them act like stereo sounds, i.e. just playing as is, no directionality or rolloff.
     
  5. chronopsis

    chronopsis

    Joined:
    May 1, 2006
    Posts:
    25
    time to reply to myself again...

    had another look at the demo files and realized that in the fps example the shootball script is quite different; i had been using the script for a static shooter.

    but it still doesn't seem to work; when i attach the script the sound rolloff and directionality disappears...
     
  6. cgoran

    cgoran

    Joined:
    Jun 11, 2005
    Posts:
    176
    I've been experiencing this same issue with moono ogg files.
     
  7. cgoran

    cgoran

    Joined:
    Jun 11, 2005
    Posts:
    176
    Is this an bug, or user error?
     
  8. cgoran

    cgoran

    Joined:
    Jun 11, 2005
    Posts:
    176
    thought i would bump this agan, as it is still not working.
     
  9. cgoran

    cgoran

    Joined:
    Jun 11, 2005
    Posts:
    176
    Anyone...
     
  10. Joachim_Ante

    Joachim_Ante

    Unity Technologies

    Joined:
    Mar 16, 2005
    Posts:
    5,203
    Do you have the mono .ogg vorbis file that doesn't do attenuation?