RE: How do I load small "wav" files?

From: Rhett Gong [MSFT] (v-raygon_at_online.microsoft.com)
Date: 09/09/04

  • Next message: jaam: "Re: Connecting to a Default DirectSound device filter"
    Date: Thu, 09 Sep 2004 09:38:58 GMT
    
    

    I use following code with a 298 bytes sample, and it works fine. Could you
    apply it and let me know your result please?
    //---------------------
    Microsoft.DirectX.DirectSound.Device dev = new Device();
    dev.SetCooperativeLevel(this,
    Microsoft.DirectX.DirectSound.CooperativeLevel.Normal);

    //Microsoft.DirectX.DirectSound.BufferDescription bd = new
    BufferDescription();
    //bd.ControlEffects = false;

    Microsoft.DirectX.DirectSound.Buffer bf = new
    Microsoft.DirectX.DirectSound.Buffer(@"e:\truespeech.WAV", dev);
    bf.Play(0,BufferPlayFlags.Default);
    //-----------------------

    Best regards,
    Rhett Gong [MSFT]
    Microsoft Online Partner Support

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Please reply to newsgroups only. Thanks.


  • Next message: jaam: "Re: Connecting to a Default DirectSound device filter"

    Relevant Pages

    • Re: beginners question
      ... > newsgroups like this one about free compilers, ... Would you prefer it if we said "you can't use Dev for writing ... I we don't say it's only appropriate to use system-specific solutions. ...
      (alt.comp.lang.learn.c-cpp)
    • Re: Failing DC
      ... This posting is provided "AS IS" with no warranties, and confers ... no rights. ... only reply to Newsgroups ...
      (microsoft.public.windows.server.active_directory)
    • Re: Removal of dead server GUIDs from the Active Directory
      ... This posting is provided "AS IS" with no warranties, and confers no rights. ... only reply to Newsgroups ...
      (microsoft.public.windows.server.active_directory)
    • Re: Not Pulling an IP
      ... This posting is provided "AS IS" with no warranties, and confers no rights. ... only reply to Newsgroups ... Is the DHCP server authoriyed in AD and is the scope on the DHCP ...
      (microsoft.public.windows.server.active_directory)
    • Re: How do I display the taskbar controls?
      ... > This posting is provided "AS IS" with no warranties, and confers no rights. ... > All e-mail to this account will bounce or be deleted - *use the newsgroups*. ...
      (microsoft.public.windowsmedia.player)