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

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

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: Trust windows 2k to windows 2k3
      ... This posting is provided "AS-IS" with no warranties or guarantees and ... confers no rights. ... only reply to Newsgroups ...
      (microsoft.public.windows.server.active_directory)
    • Re: Trust windows 2k to windows 2k3
      ... This posting is provided "AS-IS" with no warranties or guarantees and confers no rights. ... only reply to Newsgroups ...
      (microsoft.public.windows.server.active_directory)
    • 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: Trust windows 2k to windows 2k3
      ... This posting is provided "AS IS" with no warranties, and confers no rights. ... only reply to Newsgroups ...
      (microsoft.public.windows.server.active_directory)