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. C / C++ / MFC
  4. Need help on MCI

Need help on MCI

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
4 Posts 2 Posters 1 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.
  • J Offline
    J Offline
    John502
    wrote on last edited by
    #1

    Hi, I have created one application that will used play calls, i have developed this application using MCI (Media Control Interface). I am running my application on the machine which don't have sound cards, that time i am getting one error related MCI. but that error message is not irrelevant, now i want to change that error message. Or before starting my application i want to check whether that machine has sound cards installed or not. Can any one help me out how to check about the sound cards.. It is very urgent requirement for me... Thanks in advance...

    A 1 Reply Last reply
    0
    • J John502

      Hi, I have created one application that will used play calls, i have developed this application using MCI (Media Control Interface). I am running my application on the machine which don't have sound cards, that time i am getting one error related MCI. but that error message is not irrelevant, now i want to change that error message. Or before starting my application i want to check whether that machine has sound cards installed or not. Can any one help me out how to check about the sound cards.. It is very urgent requirement for me... Thanks in advance...

      A Offline
      A Offline
      aks
      wrote on last edited by
      #2

      try waveOutGetNumDevs() function http://msdn.microsoft.com/en-us/library/ms713748(VS.85).aspx[^]

      aks

      J 1 Reply Last reply
      0
      • A aks

        try waveOutGetNumDevs() function http://msdn.microsoft.com/en-us/library/ms713748(VS.85).aspx[^]

        aks

        J Offline
        J Offline
        John502
        wrote on last edited by
        #3

        Hi aks, Thanks for your reply.. I have checked this function on my machine, which is having sound cards, i am able to get the return value is 6. I have checked the same scenario on the machine which doesn't have sound cards, there i am getting the return value as 1. I have tried to play mp3 song on that machine, but not able to play that. I don;t know based on msdn help if no sound cards are enable, this function should return 0 instead of non zero number... Can you please explain me this scenario...? Thanks in advance...

        A 1 Reply Last reply
        0
        • J John502

          Hi aks, Thanks for your reply.. I have checked this function on my machine, which is having sound cards, i am able to get the return value is 6. I have checked the same scenario on the machine which doesn't have sound cards, there i am getting the return value as 1. I have tried to play mp3 song on that machine, but not able to play that. I don;t know based on msdn help if no sound cards are enable, this function should return 0 instead of non zero number... Can you please explain me this scenario...? Thanks in advance...

          A Offline
          A Offline
          aks
          wrote on last edited by
          #4

          will u check waveOutGetErrorText() http://msdn.microsoft.com/en-us/library/ms708518(VS.85).aspx[^]

          aks

          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