Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Apr 04 2021 12:26
    @dom96 banned @acroobat
  • Mar 03 2017 15:52
    @dom96 banned @Octopoda7
  • Feb 12 2017 23:57
    @dom96 banned @zzz125
  • Dec 23 2016 19:43
    @dom96 banned @Izrab
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> ??
From IRC (bridge bot)
@FromIRC
<Prestige> PMunch: congrats on the 200 stars :⁠)
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> it's me or an audio buffer is just an array of number that describe the waveform?
<FromDiscord> <System64 ~ Flandre Scarlet> (edit) "number" => "numbers"
Kaushal Modi
@kaushalmodi
Everything on a computer is just 1's and 0's
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> I made a loop that prints the values of a buffer and... https://media.discordapp.net/attachments/371759389889003532/852533563878539304/unknown.png
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> But I think GME_PLAY just outputs a buffer
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> Is there a module that can play a buffer ?)
<FromDiscord> <haxscramper> IIRC sdl can work with audio buffers
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> Okay I have sdl2
<FromDiscord> <System64 ~ Flandre Scarlet> So I need to interop with
From IRC (bridge bot)
@FromIRC
<FromDiscord> <haxscramper> There is a SDL wrapper already
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> Oh nice
<FromDiscord> <System64 ~ Flandre Scarlet> Do you mean SDL or SDL_MIXER ?
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> I think SDL_MIXER can do sound too
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Goel> https://github.com/nim-lang/sdl2
Kaushal Modi
@kaushalmodi
timotheecour: Are you here? I am trying to update a testament test. I am seeing that the Hint messages in the discard""" .. """ get shuffled. Is that expected?
Kaushal Modi
@kaushalmodi
Anyways, I created a PR ref: https://github.com/nim-lang/Nim/pull/18232/files . I see that I need to put the warnings in the exact order. I expected the line number changes but not the order of warnings.
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> WTF seems hard to play a buffer!
<ForumUpdaterBot> New thread by Kaushalmodi: Test for nim-lang/Nim#9070, see https://forum.nim-lang.org/t/8104
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Ricky Spanish> anyone konw of any nim packages for formatting text/code files? or something to assist me in setting my own formatting rules easily
<FromDiscord> <System64 ~ Flandre Scarlet> I think I found the C++ code for playing music https://media.discordapp.net/attachments/371759389889003532/852561265595252736/message.cpp
Bung
@bung87
formatting nim code ? nimpretty
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Ricky Spanish> not nim code is the issue, really i want something i can use to define my own rules for formatting text easilly
Bung
@bung87
strutils or strformat has a proc that you can define custom open char and close char
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Ricky Spanish> hm ok thanks ill take a look and see
From IRC (bridge bot)
@FromIRC
<FromDiscord> <haxscramper> In reply to @Ricky Spanish "not nim code is": if you want to try I have reimplementation of google/rfmt code layout algorithm https://haxscramper.github.io/hmisc/src/hmisc/other/blockfmt.html
<FromDiscord> <Ricky Spanish> yes thats exactly the kind of thing im looking for
<FromDiscord> <haxscramper> But it is proof-of-concept at best, so not a lot of examples beyond tests.
<FromDiscord> <Ricky Spanish> worth a try, for now iv got a fairly limited usecase for it anyway so worth experimenting, thanks
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Goel> sent a code paste, see https://play.nim-lang.org/#ix=3pug
<FromDiscord> <haxscramper> I think you can unpack (v, n, a, b) = (0,0,0,0)
<FromDiscord> <haxscramper> But there is no python(?)-like assign for multiple values
<FromDiscord> <haxscramper> !eval var a, b, c: int; (a, b, c) = (1, 2, 3); echo a,b,c
<NimBot> 123
<FromDiscord> <Bung> !eval var a,b,c = 0
<NimBot> <no output>
<FromDiscord> <Bung> !eval var a,b,c = 1; echo a,b,c
<FromDiscord> <haxscramper> !eval var a, b, c = 112; echo a, " ", b, " ", c
<NimBot> 111
<NimBot> 112 112 112
<FromDiscord> <Bung> !eval var a,b,c:int; a,b,c=1; echo a,b,c
<NimBot> Compile failed: /usercode/in.nim(1, 17) Error: invalid indentation
From IRC (bridge bot)
@FromIRC
<FromDiscord> <Goel> sent a code paste, see https://play.nim-lang.org/#ix=3puh
<FromDiscord> <Bung> this wont work
<FromDiscord> <Bung> sent a code paste, see https://play.nim-lang.org/#ix=3pul