Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Graphics
  4. directsound can not be initized

directsound can not be initized

Scheduled Pinned Locked Moved Graphics
questiongraphicsgame-devhelp
1 Posts 1 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mwolf122
    wrote on last edited by
    #1

    Hello, i am writing a 3d program using DirectX. Now i want to play a piece of sound with DirectSound, but the initilization was not accomplished. the code i have written below, .... CoInitialize(NULL); if (FAILED( hResult = CoCreateInstance( CLSID_DirectMusicLoader , NULL, CLSCTX_INPROC, IID_IDirectMusicLoader8, (void**) &pLoader))) { return SOUNDERROR_MUSICLOADER; } if (FAILED( hResult = CoCreateInstance( CLSID_DirectMusicPerformance, NULL, CLSCTX_INPROC, IID_IDirectMusicLoader8, (void**) &pPerformance))) { return SOUNDERROR_MUSICPERFORMANCE; } .... the initial of DirectMusicLoader succeed, but wenn DirectMusicPerformance is initilized, it returned failure. Does anyone knows how can i solve the problem? thx anyway. mwolf122

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups