Search:

Type: Posts; User: samGwilliam

Page 1 of 16 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    6,812

    SDL Multiple Window - Quitting Issue

    I am attempting to make a Windows program in SDL, which was going alright until I made it a dual-window project (using the SDL_CreateWindow () function, with the SDL_Window object).

    Before I did...
  2. Thread: MIDI in.

    by samGwilliam
    Replies
    4
    Views
    8,040

    Thanks very much, I managed to get it sorted in...

    Thanks very much, I managed to get it sorted in the end. I started a fresh project small - at first a "Hello World" project to which I added the line #include <mmsystem.h>, then declared the callback...
  3. Thread: MIDI in.

    by samGwilliam
    Replies
    4
    Views
    8,040

    Thanks very much, I managed to get it sorted in...

    Thanks very much, I managed to get it sorted in the end. I started a fresh project small - at first a "Hello World" project to which I added the line #include <mmsystem.h>, then declared the callback...
  4. Thread: MIDI in.

    by samGwilliam
    Replies
    4
    Views
    8,040

    MIDI in.

    I am trying to write a simple Windows program in Code::Blocks (as a foundation to write a larger program) but everything I try just doesn't compile for a variety of cryptic reasons.

    For instance...
  5. Replies
    6
    Views
    8,967

    Yeah sorry, I was just throwing my toys out of my...

    Yeah sorry, I was just throwing my toys out of my pram. This is so frustrating though - all I'm seeing are seemingly unnecessary barriers to the pure pursuit of coding. I did some stuff with Arduino...
  6. Replies
    6
    Views
    8,967

    And the image is, for some reason, too small to...

    And the image is, for some reason, too small to read. No idea why that is, sorry. Oh, and, while I'm trying to read the error messages the, after about 12 seconds, the IDE spontaneously opens some...
  7. Replies
    6
    Views
    8,967

    I found the header file so I thought I'd try and...

    I found the header file so I thought I'd try and get the winmm.lib file to work with it. I did some Googling and discovered that Mingw has its own version called winmm.a so I put the command line...
  8. Replies
    6
    Views
    8,967

    Thank you. I gave this a try: MIDI-in sample...

    Thank you. I gave this a try: MIDI-in sample program for Win32 (using winmm.lib) * GitHub

    And, just like I knew was going to happen, it complained that it couldn't find SDKDDKVer.h. I've never...
  9. Replies
    6
    Views
    8,967

    Detecting and polling MIDI in devices.

    Can anyone help me with reading MIDI input (from a controller keyboard or similar)? I want to write a software synthesiser, I'm having trouble with getting the audio part working (it seems the...
  10. Do you mean statically link to a DLL (as in go to...

    Do you mean statically link to a DLL (as in go to the compiler options and set the path containing the DLL, as opposed to the compiled app looking for the DLL at runtime)? The problem I'm having is...
  11. That would explain the lack of .lib files. I...

    That would explain the lack of .lib files. I definitely never had this problem when using Port Audio a few years back. I think I was using v17 or v18, though, now I'm using v19 and maybe they expect...
  12. The default compiler for C::B, it seems, is the...

    The default compiler for C::B, it seems, is the GNU GCC compiler so this will be the one I'm using. Also something called MinGW.
  13. It seems that I should be giving Code::Blocks the...

    It seems that I should be giving Code::Blocks the path of some .lib files - but I searched the Port Audio directory and found no .lib files at all. I know I've managed to get this to work in the...
  14. Linker Issue - Getting PortAudio to work with Code::Blocks

    I've installed the SDK and set the right folder for the include path but it's giving me errors, saying undefined references to functions.

    I know what the problem is - something to do with the...
  15. Replies
    13
    Views
    7,541

    I really have to try this multithreading lark...

    I really have to try this multithreading lark sometime.
  16. Replies
    11
    Views
    2,322

    That's pretty cool. Did you store the number...

    That's pretty cool.

    Did you store the number as a byte per digit and perform the carrying manually or something?
  17. Replies
    2
    Views
    2,482

    Signed ints use the most significant bit to...

    Signed ints use the most significant bit to indicate polarity, so the shift will change that.
  18. True. I do know OpenGL, but can't really be...

    True.

    I do know OpenGL, but can't really be bothered to use it for 2D. I wouldn't even know how to off the top of my head - would you just use textured polygons as sprites?
  19. Replies
    2
    Views
    3,483

    That would be a tough one - much more complex...

    That would be a tough one - much more complex than the cube because with the cube all of the moves can be done at anytime - with the Magic there would be far more constraint. If I had one in front of...
  20. Replies
    16
    Views
    8,297

    It's pretty good. Well done.

    It's pretty good. Well done.
  21. Replies
    13
    Views
    2,196

    Isn't that the Sieve of Eratosthenes or...

    Isn't that the Sieve of Eratosthenes or something?

    A (former) friend of mine thought he discovered that himself and even started writing some wanky 'paper' about it, crowbarring in sine waves for...
  22. I'm writing a 2D game that uses the BitBlt...

    I'm writing a 2D game that uses the BitBlt function - it's pretty fast even though I haven't fully optimised yet.
  23. Replies
    13
    Views
    2,196

    Even better.

    Even better.
  24. Direction and velocity could be scalar variables...

    Direction and velocity could be scalar variables or a vector - it would definitely make sense to store the resulting X and Y deltas as a vector though (and only calculate when the angle changes).
    ...
  25. Replies
    13
    Views
    2,196

    Your while condition will most likely make the...

    Your while condition will most likely make the second if fail. You correctly exit the loop when you discover it's not prime, so at that point why not just set a flag (bool isPr or something), then...
Results 1 to 25 of 384
Page 1 of 16 1 2 3 4