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. C / C++ / MFC
  4. waveOutOpen Working Properly but Voice is Low

waveOutOpen Working Properly but Voice is Low

Scheduled Pinned Locked Moved C / C++ / MFC
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.
  • A Offline
    A Offline
    AmbiguousName
    wrote on last edited by
    #1

    hello guys... Im using waveOutOpen function to play a voice on my Landline number. Now when I play voice in windows media player it plays fine but when I play voice using waveOutOpen() it plays low (actually you"ll have with all attention and no noise around). Wjhat can be the reason. I am using following properties for format for waveInOpen() and waveOutOpen().

         WAVEFORMATEX	  \_oFormat;
         LPWAVEFORMATEX	  \_pFormat = NULL;
    
    \_pFormat = &\_oFormat;
    \_pFormat->wFormatTag = WAVE\_FORMAT\_PCM;
    \_pFormat->cbSize = 0;
    \_pFormat->nChannels = 1;
    \_pFormat->nBlockAlign = 1;
    \_pFormat->wBitsPerSample = 8;
    \_pFormat->nSamplesPerSec = 8000;
    \_pFormat->nAvgBytesPerSec = 8000;
    
    R 1 Reply Last reply
    0
    • A AmbiguousName

      hello guys... Im using waveOutOpen function to play a voice on my Landline number. Now when I play voice in windows media player it plays fine but when I play voice using waveOutOpen() it plays low (actually you"ll have with all attention and no noise around). Wjhat can be the reason. I am using following properties for format for waveInOpen() and waveOutOpen().

           WAVEFORMATEX	  \_oFormat;
           LPWAVEFORMATEX	  \_pFormat = NULL;
      
      \_pFormat = &\_oFormat;
      \_pFormat->wFormatTag = WAVE\_FORMAT\_PCM;
      \_pFormat->cbSize = 0;
      \_pFormat->nChannels = 1;
      \_pFormat->nBlockAlign = 1;
      \_pFormat->wBitsPerSample = 8;
      \_pFormat->nSamplesPerSec = 8000;
      \_pFormat->nAvgBytesPerSec = 8000;
      
      R Offline
      R Offline
      rp_suman
      wrote on last edited by
      #2

      Did you check the return value of waveOutOpen is MMSYSERR_NOERROR or not?

      -- "Programming is an art that fights back!"

      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