Results 1 to 2 of 2

Thread: Winmm really really urgent

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Posts
    8

    Unhappy

    Well i wrote a program which was usin intensively sounds (through a mm control) and i notice that after a day even my pIV gets slown, I guessed it was a leak in memory by the microsoft designed control, so i rewrote it with the sound API (
    Private Declare Function mciSendString Lib "winmm.dll" Alias _
    "mciSendStringA" (ByVal lpstrCommand As String, _
    ByVal lpstrReturnString As String, _
    ByVal uReturnLength As Long, ByVal hwndCallback As Long) As Long
    and so on... u know the rest... well a simple loop playing varioous short sounds continiously...). Same problem after a day the memory get filled!!! So, I beg ur help that really important please tell me how to play sounds during a long time without filling unrelentlessly my disk buffer or my RAM or whatever it is.... thx by advance!!!

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    India
    Posts
    2,288
    Are you closing the device that you had opened once you are through playing a file? I think this might be the problem as every open file would be taking its ow memory.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width