Questions tagged [winmm]

115 questions
3
votes
0 answers

Volume levels in waveOutGetVolume and Windows 6.x Mixer applet does not always match

I've got a small program which plays a sound and I'm using Trackbar control (a Delphi's VCL wrapper of it, in the fact) to adjust a volume of that sound. Since volume level can be adjusted elsewhere, eg: Windows 7 Mixer applet, I'm polling a volume…
Free Consulting
  • 4,300
  • 1
  • 29
  • 50
3
votes
1 answer

WaveOutWrite callback creates choppy audio

I have four buffers that I am using for audio playback in a synthesizer. I submit two buffers initially, and then in the callback routine I write data into the next buffer and then submit that buffer. When I generate each buffer I'm just putting a…
MattD
  • 1,324
  • 4
  • 14
  • 28
2
votes
1 answer

C# mute other application

I am building an app that starts a screen recorder application (like OBS) automatically (to record a zoom meeting). I don't want any other application's audio to play during the recording, but I can't find a working code. I used the example in this…
SagiZiv
  • 932
  • 1
  • 16
  • 38
2
votes
1 answer

CMAKE : how to link executable to winmm imm32 version on windows with Visual Studio?

Is it possible to find these libraries easily? I do not want to reinvent the wheel and write uber-long find_library call! Even more, I just want to put line "winmm.lib etc" into "Librarian" => "Additional dependencies" or "Linker" => "Additional…
Alexander K.
  • 1,649
  • 2
  • 15
  • 21
2
votes
1 answer

Audio manipulation and delete some part of the audio

I'm new in voice codding, now I am succeed to recording microphone in the files and save each 10 seconds in a file with SaveRecordtoFile function(doing this with no problem) Now I want to delete for example 2 seconds from the recorded data so my…
mopebi
  • 79
  • 7
2
votes
2 answers

Windows 10 Get System Audio Mute Status in C#

I have attempted to use winmm.dll to no avail, I have used several other projects Ive found like this well laid out tutorial but I haven't been able to get anything except for -1 returned for the getVolume method and nonsense values for other…
Peter McKinney
  • 463
  • 3
  • 13
2
votes
3 answers

Including winmm.lib does not work

I'm trying to code a little program with a simple number guessing game. I want to play an mp3 file behind it using a simple thread. I have read How to play or open *.mp3 or *.wav sound file in c++ program?, but I can't get it to work. It always…
Grimmboy
  • 33
  • 2
  • 6
2
votes
0 answers

QMediaPlayer play no sound when winmm.dll in my program

i have used QMediaPlayer to play some sound,it worked well. then i used some third device and it`s dll api depends on the windows winmm.dll, and then my QMediaPlayer played no sound when i join the winmm.dll to my program. i dont know why. i thought…
Jian Liu
  • 21
  • 2
2
votes
2 answers

Joystick Key Capture

I want to capture input from joystick using winmm dll .. I don't have much knowledge of importing and working with DLLs. I tried to do it but i have no idea how to do it .. [DllImport("winmm.dll")] public static extern string joyGetPosEx(uint dev,…
Inv Xaasha
  • 83
  • 1
  • 2
  • 9
2
votes
3 answers

Marshalling to a native library in C#

I'm having trouble calling functions of a native library from within managed C# code. I am developing for the 3.5 compact framework (Windows Mobile 6.x) just in case this would make any difference. I am working with the waveIn* functions from…
Daniel Baulig
  • 10,739
  • 6
  • 44
  • 43
2
votes
1 answer

Audio playback/rewind function with winmm3.dll

I am working on a mp3 player with C# using the winmm.dll I have problem now with my rewind function. I start a Timer when the Play function starts. When I start the FFW function I want it ffw 5000ms from the current value of elapsedTime. for example…
xoxo_tw
  • 269
  • 1
  • 7
  • 20
2
votes
1 answer

Confused about how Windows get audio line names

I'm getting very confused about how audio devices/lines/endpoints are named in windows (vista). First I go to the control panel applet "Sound". Among others, I find one input line that resides physically on a USB Audio Device. The name of the…
Padu Merloti
  • 3,219
  • 3
  • 33
  • 44
2
votes
2 answers

Is it possible to relate the same audio device in different APIs?

I'm using the winmm api to deal with audio. I'm using waveInGetDeviceCaps and waveInMessage to uniquely identify an "audio line". Everything works fine, except that in Vista, the name of the device is capped in 32 chars by the WaveInCaps struct. To…
Padu Merloti
  • 3,219
  • 3
  • 33
  • 44
2
votes
3 answers

How to relate WAVE_MAPPER audio line with its audio device

I'm developing an application that among other things, enumerates all input audio devices (using SetupAPI) and then for each audio device, it lists all input audio lines (using winmm.dll). Basically, the way I'm relating the two is getting the…
Padu Merloti
  • 3,219
  • 3
  • 33
  • 44
2
votes
1 answer

Using winmm library in C

i'm trying to make a program in which I can play music i.e mp3 files.I'm trying to do this by using the winmm library.At first when i tried linking it,the compiler gave errors from which i realized that the program hadn't been linked properly with…
maham.shahid
  • 301
  • 4
  • 19