LÖVE 11.0 released!
Re: LÖVE 11.0 released!
And it's not like you'd care much about audio on mobile - those tiny speakers at the back can't produce good quality sound anyway. Ditto bluetooth speakers.
Re: LÖVE 11.0 released!
I don't understand all the changed of the audio api. It's very hard to get compatibility back.
For example, TESound uses different states for audio channels.
* Stopped
* Paused
* Play
Now Paused and Resume are gone. Stop rewinds ...
How can i now "pause" an source and resume? I can only use stop, but this rewinds the source which i don't want.
Also "NOT source:isPlaying" is not the same as source:isPaused as a source can be stopped or paused. So it's not clear when using "NOT source:isPlaying" wether it's stopped or paused.
For example, TESound uses different states for audio channels.
* Stopped
* Paused
* Play
Now Paused and Resume are gone. Stop rewinds ...
How can i now "pause" an source and resume? I can only use stop, but this rewinds the source which i don't want.
Also "NOT source:isPlaying" is not the same as source:isPaused as a source can be stopped or paused. So it's not clear when using "NOT source:isPlaying" wether it's stopped or paused.
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: LÖVE 11.0 released!
https://bitbucket.org/slime73/love_macbin/get/tip.zip
Source:pause still exists, it just sets the playing state to false without rewinding (whereas Source:stop sets the playing state to false and rewinds). Source:play resumes a Source from its current playback time. There's no need for isPaused versus isStopped anymore.SiENcE wrote: ↑Sun Apr 08, 2018 7:00 pm I don't understand all the changed of the audio api. It's very hard to get compatibility back.
For example, TESound uses different states for audio channels.
* Stopped
* Paused
* Play
Now Paused and Resume are gone. Stop rewinds ...
How can i now "pause" an source and resume? I can only use stop, but this rewinds the source which i don't want.
Also "NOT source:isPlaying" is not the same as source:isPaused as a source can be stopped or paused. So it's not clear when using "NOT source:isPlaying" wether it's stopped or paused.
Re: LÖVE 11.0 released!
Ok, this info was missing. Would be good to add this to the wiki.slime wrote: ↑Sun Apr 08, 2018 7:12 pmSource:play resumes a Source from its current playback time. There's no need for isPaused versus isStopped anymore.
But how do i know if the source was stopped or paused? Do i have to ask Source:tell ?
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: LÖVE 11.0 released!
Paused at the very beginning == Stopped then, basicallySiENcE wrote: ↑Mon Apr 09, 2018 1:50 pmOk, this info was missing. Would be good to add this to the wiki.slime wrote: ↑Sun Apr 08, 2018 7:12 pmSource:play resumes a Source from its current playback time. There's no need for isPaused versus isStopped anymore.
But how do i know if the source was stopped or paused? Do i have to ask Source:tell ?
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: LÖVE 11.0 released!
I was sad to see that this behavior had been removed as well. Using values over 255 was a very easy way to get a nice flash effect for a particular sprite. I haven't really figured out a good replacement for this yet, perhaps drawing multiple times with a particular blending mode could produce something similar?Iori Branford wrote: ↑Wed Apr 04, 2018 10:02 pm I noticed color values when drawing sprites are now clamped to the min and max ranges. In the attached test, the sprite pulses pink in 0.10.2 but not 11.0. But I also noticed that the color values when drawing shapes are clamped in both versions, to 0-255 and 0-1 respectively.
So is this new sprite color behavior intended for consistency and I have been exploiting a bug for my color effect?
E: Test now includes shape drawing for comparison.
Re: LÖVE 11.0 released!
-
Last edited by Ulydev on Mon Apr 09, 2018 10:06 pm, edited 1 time in total.
Re: LÖVE 11.0 released!
I'm guessing you need shaders for that now, but I do fail to see why the values are clamped at all.shru wrote: ↑Mon Apr 09, 2018 6:11 pmI was sad to see that this behavior had been removed as well. Using values over 255 was a very easy way to get a nice flash effect for a particular sprite. I haven't really figured out a good replacement for this yet, perhaps drawing multiple times with a particular blending mode could produce something similar?Iori Branford wrote: ↑Wed Apr 04, 2018 10:02 pm I noticed color values when drawing sprites are now clamped to the min and max ranges. In the attached test, the sprite pulses pink in 0.10.2 but not 11.0. But I also noticed that the color values when drawing shapes are clamped in both versions, to 0-255 and 0-1 respectively.
So is this new sprite color behavior intended for consistency and I have been exploiting a bug for my color effect?
E: Test now includes shape drawing for comparison.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
"If each mistake being made is a new one, then progress is being made."
Re: LÖVE 11.0 released!
What would values beyond 1 (or 255) mean? You can't get whiter than white, or more opaque than 100%.
Re: LÖVE 11.0 released!
It makes sense in the case of drawing textures at least, because LÖVE's color isn't the displayed color - it's multiplied by the colors in the texture. You could for example double the amount of red displayed:
0.4, 0.5, 0.9, 1.0 -- Texture pixel RGBA.
2.0, 1.0, 1.0, 1.0 -- LÖVE RGBA.
0.8, 0.5, 0.9, 1.0 -- Displayed result (which still isn't white).
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
"If each mistake being made is a new one, then progress is being made."
Who is online
Users browsing this forum: Ahrefs [Bot] and 10 guests