473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Winmm Open Mixer Error...

Hello

I REALLY appreciate the help. At the moment, while I am stumbling
through the Platform SDK, I am just starting at trying to open the
device. Here is my declaration:
Declare Function mixerOpen Lib "winmm.dll" Alias "mixerOpen" (ByVal phmx
As Long, ByVal uMxId As Long, ByVal dwCallback As Long, ByVal dwInstance
As Long, ByVal fdwOpen As Long) As Long
And then my code:

Dim rc, phmx, uMxId As Long
uMxId = 0
'Try to open mixer device 0
rc = mixerOpen(phmx, uMxId, 0, 0, 0)
The source code that I have seen shows that 'MMSYSERR NOERROR = 0'.
Therefore the result of RC should equal MMSYSERR NOERROR, but the result
of RC when I run the program is '11', not '0'. None of the code that I
have seen explains what '11' is. I can only assume that since RC does
not equal '0', then it has not opened the device. The Platform SDK
tells me the name of the errors that are returned but not what the
values are!!

Dazz

I have the same problem...

Dom
Nov 20 '05 #1
1 1729
* Do******@hotmail.com (Dom Lague) scripsit:
I REALLY appreciate the help. At the moment, while I am stumbling
through the Platform SDK, I am just starting at trying to open the
device. Here is my declaration:
Declare Function mixerOpen Lib "winmm.dll" Alias "mixerOpen" (ByVal phmx
As Long, ByVal uMxId As Long, ByVal dwCallback As Long, ByVal dwInstance
As Long, ByVal fdwOpen As Long) As Long
Replace all 'As Long' with 'As Int32'. The last parameter can be
declared as 'Boolean', 'uMxId' as 'UInt32'.
And then my code:

Dim rc, phmx, uMxId As Long


'Long' -> 'Int32' ('Integer').

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Marian Aldenhövel | last post by:
Hi, I am trying to make pygame play music on windows. This simple program: import pygame,time pygame.init() print "Mixer settings", pygame.mixer.get_init() print "Mixer channels",...
1
by: Mr. x | last post by:
Hello, Flash has a panel which called color mixer. In the color mixer, I can make colors, which are linear / radial colors (changing from one color to another). Can I do this without flash (I...
0
by: Dom Lague | last post by:
Hello... I'am creating a program to check the volume and to records sounds from the digital input of my soundcard. I think that the best way to do it is with de winmm.dll api using the sound...
2
by: Dom Lague | last post by:
I need to get the signal level from the wave in input from a soundblaster. I have tried to modify a program I found that uses the winmm.dll functions. I was able to open up the mixer , but I...
1
by: Andrea V.F. | last post by:
I need to control (Get and Set) this parameters of Windows Audio Mixer: - Master Volume Mute - Master Volume Level In addition, but not mandatory, I need to control also the PC Speaker Mute...
7
by: Rich Milburn [MVP] | last post by:
Ok I am not a programmer, I copied some code and very painfully got it working in VB6. I can adjust the volume with waveOutSetVolume on winmm.dll. But I could not seem to be able to figure out how...
2
by: Eric T | last post by:
Hello friends, I'm in charge of some pure VC++ code but we're adding new features using managed C++ (7.1). On two of three developer machines the execution of this code has become impossible...
5
by: krupa.p | last post by:
Hi All, I am trying to call the waveOutGetVolume() function in winmm.dll from my VS 2005 C# project using P/Invoke. I copied winmm.dll from Windows\system32 directory into the root directory of...
1
by: globalrev | last post by:
import pygame pygame.mixer.music.load(example1.mp3) pygame.mixer.music.play(loops=1, start=0.0) Traceback (most recent call last): File "C:\Python25\myPrograms\pygameProgs\musicexp.py",...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.