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 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> In reply to @haxscramper "I checked their example": With my binding or the original C code too?
From IRC (bridge bot)
@FromIRC
<FromDiscord> <haxscramper> did you check C code yourself?
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> tried to compile?
From IRC (bridge bot)
@FromIRC
<FromDiscord> <haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=3prI
<FromDiscord> <haxscramper> It generates correct out.wav
<FromDiscord> <haxscramper> For the demo. And also builds correct library version
<FromDiscord> <haxscramper> Well, not "correct" - there was nothing wrong with it in the first place, but considering your .dll does not have required symbols you might want to build it from source
<FromDiscord> <haxscramper> idk how exactly you are supposed to wrap extern const global variables, but your original approach with importc: gme_ay_type and dymlib: "libgme.dll" seems fine to me
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> I'll try to compile it
<FromDiscord> <System64 ~ Flandre Scarlet> And does it play music ?
From IRC (bridge bot)
@FromIRC
<FromDiscord> <haxscramper> Id won't play any music
<FromDiscord> <haxscramper> > C example that opens a game music file and records 10 seconds to "out.wav"
Kaushal Modi
@kaushalmodi
System64: Can you get the original C code to work and get the sound?
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=3prU
<FromDiscord> <System64 ~ Flandre Scarlet> But I saw an interesting message
<FromDiscord> <haxscramper> well, i literally just copy-pasted the code again and it generated out.wav file
<FromDiscord> <haxscramper> I'm still not sure why are you so convinced it would play any sound though, because that's not what it says in the example
<FromDiscord> <haxscramper> comment
<FromDiscord> <System64 ~ Flandre Scarlet> It says that, that's interesting https://media.discordapp.net/attachments/371759389889003532/852516040033828924/unknown.png
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> In reply to @haxscramper "I'm still not sure": 'cause with the GameMaker plugin, it plays sound
Bung
@bung87
hey , how to version dll source files, I dont want to compile every time the proc calls
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> Well I have a debug dll https://media.discordapp.net/attachments/371759389889003532/852519894053421096/gme.dll
Bung
@bung87
found some one compute all files hash in that dir
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> humm weird, seems it doesn't play any sound even in C, I dunno if I need something else to play sound
Kaushal Modi
@kaushalmodi

System64:

humm weird, seems it doesn't play any sound even in C

So you'd need to first get that working. Engage that lib's developer to help find out if you are missing any dependencies

From IRC (bridge bot)
@FromIRC
<FromDiscord> <haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=3psd
<FromDiscord> <haxscramper> initialize some internal state or start playing things?
<FromDiscord> <System64 ~ Flandre Scarlet> I dunno, what I know is the program creates a wav
From IRC (bridge bot)
@FromIRC
<FromDiscord> <System64 ~ Flandre Scarlet> I think I need something to play the buffer
From IRC (bridge bot)
@FromIRC
<Arrrrrrrr> Metal
<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