Search:

Type: Posts; User: subflood

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,427

    Yey it works now. Why do I need to include the...

    Yey it works now. Why do I need to include the header file if it's already included in audio.c which is one file in my project.
  2. Replies
    8
    Views
    1,427

    Here is the original code aud.h /*...

    Here is the original code

    aud.h



    /* Audio.c functions */
    bool InitAudio(int freq, Uint16 frmat, int chann, int buff);
    char * LoadAudioList(char * file_tracks); // The evil function...
  3. Replies
    8
    Views
    1,427

    I used the typedef approach and I still get the...

    I used the typedef approach and I still get the same warning however, if I try and compile your code everything works fine. The thing is that the program works the way it's supposed but the warning...
  4. Replies
    8
    Views
    1,427

    pointer problems

    Hello, I'm having a problem with pointers that I can't figure out. It's hard for me to explain so I will show you the code and the problem.

    calling function prototype:

    char * LoadAudioList(char...
  5. Replies
    2
    Views
    1,332

    Thank you

    Thank you
  6. Replies
    2
    Views
    1,332

    functions and structures

    I have a structure in a function declared like this:

    struct audio ad;

    and basically I need to return its address to the calling function.

    First, should the declaration look something like...
  7. Thread: File I\O

    by subflood
    Replies
    5
    Views
    949

    ok thanks guys.

    ok thanks guys.
  8. Thread: File I\O

    by subflood
    Replies
    5
    Views
    949

    Gbrick is a 2d array. Let me get this...

    Gbrick is a 2d array.

    Let me get this straight, if you read the first number in the file using fread and then you call fread again it will start from the seconds number in the file?
  9. Thread: File I\O

    by subflood
    Replies
    5
    Views
    949

    File I\O

    Hello, I'm trying to save a few numbers is a file and then read them back but I'm not sure If I'm doing this correctly.

    What I want is this to be saved in a file in this format: 5...
  10. Replies
    5
    Views
    6,875

    I just looked throught my book about C and it was...

    I just looked throught my book about C and it was there, I can't believe I forgot this.

    thanks guys
  11. Replies
    5
    Views
    6,875

    I always thought that when you declare a variable...

    I always thought that when you declare a variable of a type struct it will automatically allocate the memory.
  12. Replies
    5
    Views
    6,875

    accessing member in struct = segmentation

    Here is the struct:


    struct circle_t {
    int x, y, r;
    int color;
    int xs, ys;
    int dx, dy;
    };
  13. Replies
    13
    Views
    2,766

    nope

    nope
  14. Replies
    13
    Views
    2,766

    I did have an if statement before the else if...

    I did have an if statement before the else if it's just that *cols = 2; was between the two.
  15. Replies
    13
    Views
    2,766

    Yea you are right. Why does it work like that? ...

    Yea you are right. Why does it work like that?




    sorry about that.
  16. Replies
    13
    Views
    2,766

    I have hundreads of lines before that piece of...

    I have hundreads of lines before that piece of code. It compiles well if I just comment *cols = 2;
  17. Replies
    13
    Views
    2,766

    error: parse error before "else"

    *cols = 2;

    else if (!table[*rows][*cols]) {

    table[*rows][*cols] = 1;

    return...
  18. Replies
    1
    Views
    1,184

    sleep function

    What is a function that will wait x amount of milliseconds until it goes to the next line of code? What header do I need to include in my source file?

    I'm on a GNU/Linux system.
  19. Replies
    2
    Views
    7,219

    thats the one i'm learning from

    thats the one i'm learning from
  20. Replies
    2
    Views
    7,219

    ncurses, windows, and colors

    I had a few questions about ncurses and how it handles windows and colors.

    I was practicing programming using the ncurses and I can't figure out a few things.

    My first problem is when I make a...
  21. Replies
    2
    Views
    1,895

    i don't know what api to use myself. I just...

    i don't know what api to use myself. I just wanted something easy and fast.

    thanks for the link to fmod I'll check it out.
  22. Replies
    2
    Views
    1,895

    sound in console

    How would I play an mp3 or any other sound format in a console app so that the music plays in the background while the program is still running normally like it would without any music playing? btw...
  23. Replies
    4
    Views
    2,232

    why not try and copy small chunks at a time?

    why not try and copy small chunks at a time?
  24. Replies
    6
    Views
    4,808

    again thanks man. I use the strchr() function...

    again thanks man.

    I use the strchr() function to find newline characters and replace them with the null terminator.
  25. Replies
    6
    Views
    4,808

    thanks itsme86!! I have one problem though,...

    thanks itsme86!!

    I have one problem though, how can I make sure that anything after 39 characters doesn't go to the input buffer? For example, the gets function would discard the newline...
Results 1 to 25 of 34
Page 1 of 2 1 2