Perl 6 - the future is here, just unevenly distributed

IRC log for #sdl, 2014-07-08

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
01:45 FROGGS_ joined #sdl
04:03 kaare joined #sdl
05:10 kaare joined #sdl
06:51 dod joined #sdl
07:27 basiliscos joined #sdl
07:29 FROGGS_ joined #sdl
08:13 dod joined #sdl
08:49 jq joined #sdl
09:01 dod joined #sdl
09:05 dod joined #sdl
09:13 basiliscos joined #sdl
09:36 basiliscos joined #sdl
09:38 dod joined #sdl
09:42 basiliscos joined #sdl
09:54 basiliscos joined #sdl
10:33 basiliscos joined #sdl
10:40 basiliscos joined #sdl
10:42 basiliscos joined #sdl
10:52 basiliscos joined #sdl
13:55 basiliscos joined #sdl
14:07 kaare joined #sdl
14:40 FROGGS joined #sdl
16:41 basiliscos joined #sdl
16:49 dod joined #sdl
19:01 Mithaldu why do the docs for the mixer claim it's an 8 channel mixer when i can actually make 64 channels work?
19:01 Mithaldu (and probably more)
19:05 FROGGS Mithaldu: can you point me to that documentation?
19:06 Mithaldu FROGGS: https://metacpan.org/pod/distribution/SDL/lib/pods/SDL/Mixer.pod#Supported-Formats
19:07 Mithaldu with this i was able to set it to 64:
19:07 Mithaldu https://metacpan.org/pod/distribution/SDL/lib/pods/SDL/Mixer/Channels.pod#allocate_channels
19:07 Mithaldu and in practice it did seem able to play 64 sounds at once
19:07 Mithaldu specifically, i used https://metacpan.org/pod/distribution/SDL/lib/pods/SDL/Mixer/Channels.pod#playing to query all the channels every frame
19:07 Mithaldu and i saw them dutifully flick on and off
19:09 FROGGS this page states so also: http://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_frame.html
19:09 Mithaldu you need to get me the in-frame link
19:10 Mithaldu if you mean this: http://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_11.html#SEC11
19:10 Mithaldu it only says that 8 are allocated by default
19:10 Mithaldu not that that's all it provides
19:11 Mithaldu also see the note about allocatechannels:
19:11 Mithaldu "The number of channels allocated. Never fails...but a high number of channels can segfault if you run out of memory. We're talking REALLY high!"
19:11 Mithaldu in other words: either you get the channels you want, which can be a ton, or it crashes
19:12 Mithaldu in fact, let me see how high i can drive it
19:13 Mithaldu 1 channel : 68.7 MB
19:13 FROGGS hmmm, there is nothing about the number of channels int the changes
19:13 Mithaldu 1000 channel : 68.7 MB
19:13 FROGGS http://www.libsdl.org/projects/SDL_mixer/docs/SDL_mixer_1.html#SEC1
19:14 Mithaldu 100000 channel : 74.3 MB
19:14 Mithaldu 100_000_000 : crash
19:15 Mithaldu 8_000_000 : 54ß mb
19:15 Mithaldu *540
19:15 Mithaldu FROGGS: weird
19:16 FROGGS yeah, maybe a relict, I dunno
19:16 Mithaldu likely

| Channels | #sdl index | Today | | Search | Google Search | Plain-Text | summary