My AudioDjStudio instance is set to detect CD changes. But in the CdPlayerStatusChanged event, I get a negative number for e.nPlayerIndex.
What does that mean? I can't find anything in the documentation about that. It should be the 0-based index of the player throwing the event?!?!?
Cheers,
Johnny J.
Hello Johnny,
yes, the index of the player is 0-based so it should never assume a negative value: I just checked the existing code and the possibility for this value to assume a negative value appears to be impossible. Could you be so kind to report the exact number of CDs installed on the PC and the exact negative value you are getting back?
The CdPlayerWithCddb sample makes use of the CdPlayerStatusChanged event, do you get the same negative value with it?
Kind regards
Severino Delaurenti
MultiMedia Soft
Hi Severino
Thanks a lot for looking at my problem on a Sunday, I really appreciate that. No, the problem is very strange indeed. I'm developing on a laptop with one internal CD player, and in order to make sure the program works with more than one player, I have installed an external USB CD/DVD player.
That works fine, my computer recognizes both drives, and in that respect it doesn't seem to make any difference between the internal and the external.
Your demo program fires the event twice when it starts up, once with e.nPlayerIndex = 0 and once with e.nPlayerIndex = 1 (which looks ok, that's the way it should be.
MY program ALSO fires the event twice when it starts up, once with e.nPlayerIndex = -1 and once with e.nPlayerIndex = -2. The only difference, as far as I can tell is that the AudioDjStudio instance in your case is hosted on the form itself. I have placed my instance in a usercontrol (and that has worked fine in all other cases)
I don't understand anything... :-(
Cheers
/Johnny
Hello Johnny,
I cannot think about a specific difference when the component is hosted into a user control respect to a form: if you have the possibility to send me a test project or an exe file reproducing the issue I could give it a closer look. You can send the files to our e-mail account "support @ multimediasoft.com" after having removed the two blanks around the "@" character
Kind Regards
Severino Delaurenti
MultiMedia Soft
I cannot seem to reproduce the issue in a test project. Don't know why. I could send you the project I'm working on, or a compiled version (I don't understand what you can do with a compiled exe, though?). But it seems like too much to ask of you... :-(
/Johnny
Well, with an exe reproducing the issue we could put our component in debug mode and see why the mentioned parameter is passed with a negative value. Obviously, by receiving the originating project as well, we could have a better mean to understand if the issue is inside your code.
Kind Regards
Severino Delaurenti
MultiMedia Soft
Hi Severino
I sent you a mail with the cource code and a compiled exe version.
Cheers,
Johnny
Hi Johnny,
I've got it: we will check the issue and will let you know at the soonest.
Kind Regards
Severino Delaurenti
MultiMedia Soft