https://linen.dev logo
Join Discord
Powered by
# lime
  • a

    able-action-74275

    05/10/2023, 8:10 PM
    there is scope for improvement in the lime binding though
  • r

    rich-horse-51130

    05/10/2023, 8:11 PM
    well howd you set up the filter to work through an AuxSlot, for me only direct filters seem like theyd work
  • a

    able-action-74275

    05/10/2023, 8:11 PM
    yeah it uses direct and then that goes through the effect
  • r

    rich-horse-51130

    05/10/2023, 8:12 PM
    directs no problemo
  • r

    rich-horse-51130

    05/10/2023, 8:12 PM
    also side question while we're at this
  • a

    able-action-74275

    05/10/2023, 8:13 PM
    I'm not sure if it's possible to have unfiltered source dry and filtered to effect simultaneously, the manual is somewhat cryptic
  • r

    rich-horse-51130

    05/10/2023, 8:13 PM
    do you happen to know how, despite this check for when you change the channel, the handle sometimes still turns out to be null??

    https://cdn.discordapp.com/attachments/769686258049351722/1105950869360476160/a4d600ce54cd445c14eff5864be46933.png▾

  • r

    rich-horse-51130

    05/10/2023, 8:14 PM
    from my experience this only happens when i tab out of the game the exact second the sound is initialized, so i made it only check for that
  • a

    able-action-74275

    05/10/2023, 8:14 PM
    very interesting
  • r

    rich-horse-51130

    05/10/2023, 8:15 PM
    i dont get how it would be capeable of being null anyways though (for context populateAllOf tries to access the __backend.handle, however occasionally the source field of _channel is null when setting channel, for whatever reason
  • r

    rich-horse-51130

    05/10/2023, 8:16 PM
    but as i said, only sometimes, and only if i tabbed out of the game (which is what this is for to begin with, since that resets the sound and hence the handle, which would get rid of the effect)
  • r

    rich-horse-51130

    05/10/2023, 8:16 PM
    simpler put if you tab out of the game it pauses the sound, however flxsound pausing doesnt really pause it but replays it from where it started, which resets the SoundChannel and hence resets the handle, reverting any changes ive made to it (including the setting of any effects)
  • r

    rich-horse-51130

    05/10/2023, 8:16 PM
    so this is kinda necessary
  • r

    rich-horse-51130

    05/10/2023, 8:17 PM
    startSound is called whenever the sound is, well started and/or unpaused

    https://cdn.discordapp.com/attachments/769686258049351722/1105951884784697416/3032504faa0c389d3cad02b7787061a5.png▾

  • r

    rich-horse-51130

    05/10/2023, 8:18 PM
    and on some occasions the source is just null and it doesnt really amke sense to me
  • r

    rich-horse-51130

    05/10/2023, 8:18 PM
    looking into the play function doesnt help much either unfortunately

    https://cdn.discordapp.com/attachments/769686258049351722/1105952139852918804/b191e2851a3c407bd1d556fd6f788284.png▾

  • a

    able-action-74275

    05/10/2023, 8:19 PM
    no idea really, I wonder if it's being nulled when it reaches the end of the sound before being loaded back in or something whack
  • a

    able-action-74275

    05/10/2023, 8:19 PM
    do you only see this with FlxSound?
  • r

    rich-horse-51130

    05/10/2023, 8:19 PM
    yes, im primarily using flixel
  • r

    rich-horse-51130

    05/10/2023, 8:20 PM
    id rather set up my own sound object at this point
  • r

    rich-horse-51130

    05/10/2023, 8:20 PM
    but id have to go through the process of making flixel compatible with it and ehh
  • a

    able-action-74275

    05/10/2023, 8:20 PM
    yeah was gonna suggest that
  • r

    rich-horse-51130

    05/10/2023, 8:20 PM
    id really rather not
  • r

    rich-horse-51130

    05/10/2023, 8:20 PM
    even though i could since i had to learn openals lib stuff by now anyways
  • a

    able-action-74275

    05/10/2023, 8:20 PM
    possible there is some fix that can be applied to FlxSound itself
  • a

    able-action-74275

    05/10/2023, 8:21 PM
    FlxSound is not necessarily using Open AL stuff
  • r

    rich-horse-51130

    05/10/2023, 8:21 PM
    if i could find out where the channels __source value is being set thatd fix it
  • r

    rich-horse-51130

    05/10/2023, 8:21 PM
    it is, on the backend at least
  • a

    able-action-74275

    05/10/2023, 8:21 PM
    if it's using lime AudioSource then it's target dependant
  • a

    able-action-74275

    05/10/2023, 8:21 PM
    since OpenAL is only on native/hashlink
1...116117118...138Latest