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
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. how the music files are being handled in a game

how the music files are being handled in a game

Scheduled Pinned Locked Moved Managed C++/CLI
questionc++game-devdata-structureshelp
2 Posts 2 Posters 0 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.
  • S Offline
    S Offline
    saraswathy143
    wrote on last edited by
    #1

    i'm new to game programming so this would be a good knowledge. i would love to know: 1. how the music files are being handled in a game using c++? 2. how an array are used to encapsulate a sound buffer? 3. how the array is used to create a sound buffer? 4. how a pointer to DirectSound will be obtained? 5. how the class provide method how to load the sound data (*.wav or *.pcm or *.midi files)? Is there any article regrading this that might answer my question? pls help!!!

    M 1 Reply Last reply
    0
    • S saraswathy143

      i'm new to game programming so this would be a good knowledge. i would love to know: 1. how the music files are being handled in a game using c++? 2. how an array are used to encapsulate a sound buffer? 3. how the array is used to create a sound buffer? 4. how a pointer to DirectSound will be obtained? 5. how the class provide method how to load the sound data (*.wav or *.pcm or *.midi files)? Is there any article regrading this that might answer my question? pls help!!!

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      There is sample code in the DirectX SDK to do all these things. If you need to ask 1 through 4, I wonder if you've even seen the SDK. Microsoft DirectX Downloads[^] Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      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