Questions tagged [waveout]

waveOut is an API for playing digital sounds in Windows.

52 questions
5
votes
3 answers

Double-buffered waveOutWrite() stuttering like hell

[The mystery has been solved; for those looking for an explanation, it is at the bottom of this post] Below is a Windows tone generator I am trying to write using Windows waveOut*() functions. Despite doing literally everything according to MSDN…
hidefromkgb
  • 5,834
  • 1
  • 13
  • 44
3
votes
3 answers

Playing wave file ends immediately (C++, Windows)

I have got the following situation. On a machine there is a Fritz ISDN card. There is a process that is responsible for playing a certain wave file on this device's wave out (ISDN connection is made at startup and made persistent). The scenario is…
Piotr Tyburski
  • 651
  • 6
  • 11
3
votes
1 answer

Flash and Audio Hooking

I'm trying to capture the audio which an activeX flash component is playing. I do this by finding the flash.ocx module and hook the waveOutWrite function. This seems to work well, however I cannot differentiate between different activex instances…
ronag
  • 49,529
  • 25
  • 126
  • 221
3
votes
1 answer

How do you get the current sample rate of Windows audio playback?

I am using the Windows waveOut API (aka MME or Multimedia Extension) mmsystem.h. Some programs change the audio playback sample rate (eg. from 44.1kHz to 48kHz), and it would be very useful for my program to detect the current playback sample rate,…
Blake
  • 156
  • 1
  • 9
3
votes
4 answers

waveOut (Win32API) and multithreading

I cannot find any information about the thread-safety of the waveOut API. After i creating new waveOut handle, i have those threads: Thread 1: Buffers handling. Uses those API…
DxCK
  • 4,402
  • 7
  • 50
  • 89
2
votes
2 answers

Delphi - Get Wave amplitude

I need to make Delphi library / component that takes the currently playing sound ( it does not play my apps , just the general sound of what goes on loud-speakers ) returns me the data ( the amplitude of the left and right channels ) . Currently I…
MarMar
  • 35
  • 1
  • 9
2
votes
3 answers

Convert Callback Function to DWORD_PTR in C++

Actually newbie in c++. I wrote this code but says cannot convert from "waveOutProc" to "DWORD_PTR".Would you tell me how to fix it? thanks void CALLBACK Audio::waveOutProc(HWAVEOUT hWaveOut, unsigned int uMsg, unsigned long dwInstance, unsigned…
user2998131
  • 205
  • 1
  • 2
  • 6
2
votes
1 answer

C++ Winapi waveOutSetVolume()

I want to change the master volume with the function MMRESULT waveOutSetVolume( HWAVEOUT hwo, DWORD dwVolume ); hwo Handle to an open waveform-audio output device. This parameter can also be a device identifier. How do I create a handler…
Hans Peter
  • 571
  • 1
  • 8
  • 14
2
votes
2 answers

waveOutWrite buffers are never returned to application

I have a problem with Microsoft's WaveOut API: edit1: Added Link to sample project: edit2: removed link, its not representative of the issue After playing some audio, when I want to terminate a given playback stream, I call the…
aCuria
  • 6,935
  • 14
  • 53
  • 89
2
votes
2 answers

Query wave format for a HWAVEOUT handle

Context: I have a piece of code that knows the value of a waveOut handle (HWAVEOUT). However the code did not create the handle, thus the WAVEFORMATEX that was passed to waveOutOpen when creating the handle is unknown. I want to find out the…
Dan Cristoloveanu
  • 1,974
  • 1
  • 13
  • 20
2
votes
0 answers

how to record and play sound in real time simultaneously?

I have a reciever, I want to be able to hear the audio the receiver is transmitting and to save this audio as a wav file. I have written a client-server app to communicate with the receiver. The receiver is transmitting the audio throuh udp, I play…
David
  • 287
  • 2
  • 3
  • 13
1
vote
0 answers

How can I keep playing waveOutWrite() audio when a user switches their playback device on Windows?

When a user switches their playback device on Windows, my audio playing through waveOutWrite() simply stops. Is there a way to make it continue on the other device? I am using the WAVE_MAPPER flag in waveOutOpen(). Here is my WaveOutOpen() code as…
Z0q
  • 1,689
  • 3
  • 28
  • 57
1
vote
0 answers

Anyone who has used WaveOut API CPP please explain what's wrong with my code?

I have been struggling with this for ages and ages and I'm starting to really get fed up, No matter what I try or study on I simply cannot output a sound that is not choppy regardless of how I set up the memory, few blocks, more blocks, big blocks,…
Gijahara
  • 73
  • 1
  • 9
1
vote
1 answer

Windows Waveform Functions - WAVEOUTCAPS for bitdepths other than 8 and 16

The Microsoft documentation for the WAVEOUTCAPS struct lists a number of formats that an audio device can support: I do not see any 24-bit variables listed here, although through I have confirmed my sound card is capable of opening a 24-bit output…
Grumblesaurus
  • 3,021
  • 3
  • 31
  • 61
1
vote
0 answers

C++ - Play Audio from buffer asynchronous

I come from a .net background and fairly new to developing in C++. I have a buffer like this: short* pBuffer = &pGraph->m_pDataBuf[0]; How can I play this buffer from sound card? Note: This buffer is filled in loop and in every cycle, I want to…
1
2 3 4