winmm

weird winmm.dll joystick handling behavior

I've got a very weird situation here. I have a joystick and a joypad(buttons only, 2 axes are emulated with D-pad). I have a simple program that tries to capture 2 first joysticks, and waits for messages. Upon quitting it releases the joysticks. It works if either a joystick or both a joystick and joypad are plugged in (both joystick and...

WinMM Library Issues

I wrote a WinMM library wrapper library that exposes WaveOut and WaveIn classes for the purpose of recording and playing raw audio streams. Everything works great, but in order to follow the operating system specs on how to handle the finished buffers, I added a thread that unprepares the buffers and frees the memory. I also got all of...

What determines the order for sound devices in windows when using winmm.dll?

I am trying to use NAudio to create a multiple sound output application. We have 8 USB sound cards installed. NAudio lets me use all 8 but I can't figure out a pattern for determining which device index is which card. The cards will be hooked up to different hardware so it is important to make sure you know which card you are using. ...

Is the sound library WINMM.DLL found in every Windows Installation?

I'm making a little open source mp3 player for people to see the code, etc. Proper comments, examples and what not. I was wondering though, is the winmm.dll library found in every windows installation? :D Thank SO you beast of a site! ...

How to relate WAVE_MAPPER audio line with its audio device

Hello fellow programmers, 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 device path from the audio device and then using waveInMessage to ...

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 work around that, I'm envisioning using the core api when OS version is >= Vista. I'm usi...

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 "recording device" in the applet is: Microphone 3- USB Audio Device Working From the waveInGe...

Is there any way to obtain an audio device's GUID using only the waveIn API?

The reason why I ask this is because I want to relate a given winmm audio device like the ones you open using waveInOpen with a directSound device. ...

Where is DRV_QUERYFUNCTIONINSTANCEID declared?

This question is related to this one. I need to use the winmm function waveInMessage using the above mentioned constant. I can find a bunch of similar defines (such as DRV_QUERYDEVICEINTERFACE) in the mmddk.h, but the pair DRV_QUERYFUNCTIONINSTANCEID and DRV_QUERYFUNCTIONINSTANCEIDSIZE is not. They are mentioned in the MSDN document en...

waveout sometimes memory issue

This code works to output a piano tone for 2 seconds using winmm.dll via platform invocation services, it seems to work fine on XP but waveoutopen fails in windows 7 rc updated based on feedback from John Knoeller Imports System.Runtime.InteropServices Public Class AudioStream <StructLayout(LayoutKind.Sequential)> _ Private Structure ...

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 coredll.dll (these are in winmm.dll in regular Windows I believe). This is what I came up with:...

winmm: WaveInGetVolume/WaveInSetVolume

In winmm I can find WaveOutGetVolume and WaveOutSetVolume but not a similar function for incoming volume. I was looking for WaveInGetVolume/WaveInSetVolume I'm using winmm.dll in C#.Net Does anybody know a simliar api that can do that for me? ...

Windows Multimedia API winmm.dll library too slow

Hello! i am using Windows Multimedia API winmm.dll library to play MP3 files and when i load a song it takes kins of 3-5 seconds to open and start the song . I wish to make a music app and that requires fast loading. Any ideas how i can improve the code ? Here is the code i've used : http://www.geekpedia.com/code111_Play-MP3-Files-Usi...