1. #1

    (Yet another) looping sound source problem (solved)

    Is it possible to have a looping sound source activated only if the user is moving?
    Share this post

  2. #2

    Re: (Yet another) looping sound source problem

    yes

    you can probably use some object info datasource(speed) and if its higher than 0 you let the sound loop
    Share this post

  3. #3

    Re: (Yet another) looping sound source problem

    Thanks, I'll give it a shot later - It sounds simple enough, but if I have any problems I'll edit this post

    Help! I did find a solution, but it's only temporary..

    click
    Share this post

  4. #4
    IImayneII's Avatar Senior Member
    Join Date
    Mar 2014
    Posts
    1,060

    Re: (Yet another) looping sound source problem

    Originally Posted by scottie1230
    Thanks, I'll give it a shot later - It sounds simple enough, but if I have any problems I'll edit this post

    Help! I did find a solution, but it's only temporary..
    I could be wrong but I think the generic filter needs an interval trigger to work? (at least on pc) But I think that will just restart the sound every impulse that's send. Maybe that's what's happening here.
    Maybe you can just adjusting the volume.
    Share this post

  5. #5

    Re: (Yet another) looping sound source problem

    The filter DOES need an impulse to be used, set it to every tick and you will be fine.
    Share this post

  6. #6
    mutetus's Avatar Trials Developer
    Join Date
    Dec 2013
    Location
    The land of fin.
    Posts
    859

    Re: (Yet another) looping sound source problem

    If you put an interval trigger there you probably won't hear anything because it will continuously trigger the sound source on. Try this: Take and set up one speed datasource like previously. Then place 1-input operator and pick the speed data source for its input value and set type to Abs. Then place a two-input operator and pick operator 1 value from the 1-input operator, set operator 2 to 200 and type to "greater equals". Then open the sound source and pick the two-input operator value to "enabled" value. Now whenever the speed is over 200 in either direction the sound source should turn on.
    Share this post

  7. #7
    Lukeyy19's Avatar Member
    Join Date
    Mar 2014
    Location
    UK
    Posts
    449

    Re: (Yet another) looping sound source problem

    You could keep the looping source constantly playing and just set up a filter that changes the volume to 0 if the speed equals 0, and back to 100 if it's greater than 0, that way the impulses won't mess with the sound source, and you could even make it fade in and out.
    Share this post

  8. #8

    Re: (Yet another) looping sound source problem

    Thanks for taking the time to respond guys!
    I won't be in the editor tonight - So if I have any problems I will just bump this thread later in the week. Thanks again!
    Share this post