Thread: Paint my window

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    380

    Paint my window

    My game allows a user to select a file to use as music using the Windows File Dialog and FMOD to play the music. When the music file is large in size it causes the client area of my game not to update. How would I make it possible to display a loading message and to load the file?
    Don't you dare hit me on the head, you know I'm not normal.
    A Stooge Site
    Green Frog Software

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Is an FMOD api taking too long to complete?

    gg

  3. #3
    Registered User
    Join Date
    Aug 2001
    Posts
    380
    Yes, when I call FSOUND_SampleLoad or FMUSIC_LoadSong to load an audio file.
    Don't you dare hit me on the head, you know I'm not normal.
    A Stooge Site
    Green Frog Software

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    If those routines are thread safe, you can try performing those lengthy calls in another thread.

    This is an advanced subject, so if you don't know how to do this, start here:
    Multithreading for Rookies

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C or C++
    By AcerN30 in forum Game Programming
    Replies: 41
    Last Post: 05-30-2008, 06:57 PM
  2. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  3. WM_CAPTION causing CreateWindowEx() to fail.
    By Necrofear in forum Windows Programming
    Replies: 8
    Last Post: 04-06-2007, 08:23 AM
  4. 6 measly errors
    By beene in forum Game Programming
    Replies: 11
    Last Post: 11-14-2006, 11:06 AM
  5. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM