freenode/#shirakumo - IRC Chatlog
Search
22:11:00
whaack
I'm having an issue with harmony. When I play a sound twice, it is not the same as the first time I played it. It almost seems as if the waveforms I added. To reproduce this bug I load harmony, run (harmony-simple:initialize) and then I create the sin wave class as described by the readme and run (harmony-simple:play 'sine :sfx) (harmony-simple:stop *) (harmony-simple:play 'sine :sfx) in sequence. The first tone will sound
22:13:00
whaack
it happens with my buffer source as well, just about anyway I go about playing a sound with harmony
22:18:44
whaack
hm okay. any short term solutions you can recommend? such as a way to remove the source after playing it?
22:19:32
Colleen
Generic harmony:withdraw https://shirakumo.github.io/harmony#GENERIC%20HARMONY%3AWITHDRAW
22:22:05
Shinmera
It's a bit complicated to explain, but essentially sources that have terminated should no longer be mixed or they'll leave stale data around
22:23:03
Shinmera
Unfortunately, since sources can be attached to an arbitrary amount of things at the same time, I can't really implement a way that'll automatically remove them from mixers when they've ended
22:38:12
Shinmera
whaack: Well that's an embarrassing fix https://github.com/Shirakumo/harmony/commit/a5896fdb0f54b6c284f261c3f4b15cdf792f9a53
22:38:13
Colleen
github.com/Shirakumo/harmon... Website (HTML), Title: Fix bad copypasta. · Shirakumo/harmony@a5896fd · GitHub
22:38:48
Shinmera
so either use (harmony:withdraw source (harmony-simple:segment :sfx)) or apply the above patch
22:43:33
Shinmera
https://github.com/Shirakumo/libmixed/issues/5 https://github.com/Shirakumo/harmony/issues/12
22:43:34
Colleen
github.com/Shirakumo/libmix... Website (HTML), Title: Mixers Mix Segments Even If Mix Was Unsuccessful · Issue #5 · Shirakumo/libmixed · GitHub
22:43:35
Colleen
github.com/Shirakumo/harmon... Website (HTML), Title: Automatically Withdraw Ended Sources · Issue #12 · Shirakumo/harmony · GitHub
22:52:05
Shinmera
Sorry about all the trouble by the way. Harmony has received its fair share of love, but by for not as much as it needs.
0:05:17
whaack
(for the record i'm currently fixing my problem by doing (setf harmony-simple:*server* nil)(harmony-simple:initialize) )