Jump to content
The simFlight Network Forums

rhpa23

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by rhpa23

  1. Jim, you know a way to do it without ALT + TAB ? I mean, inside the FSX.
  2. Pete, the "Playsound" work fine when I put ASCII Character. Your suspicions were right. Thanks again! PlaySound(NULL, NULL, SND_ASYNC); // Stop the sound PlaySound(".\\Sound\\XY1.wav", NULL, SND_ASYNC | SND_LOOP); // Play the sound
  3. I understand, Right now I can not do a test on FS. But I read the documentation and understand that I must do something like this: ... #include "..\Header\FSUIPC_User.h" void playSound (path) { DWORD dwResult; FSUIPC_Read(0x4200, 1, status, &dwResult); FSUIPC_Write(0x4208, 250, path, &dwResult); FSUIPC_Write(0x4204, NULL, NULL, &dwResult); FSUIPC_Write(0x4200, NULL, 1, &dwResult); while (FSUIPC_Read(0x4202, 1, status, &dwResult) == 1) { Sleep(300); } } ... I put "NULL" in the parameters that do not know what to put. Also I still read the post: http://forum.simflig...-sound-example/ Maybe can use this LUA sound.
  4. This work like a cast, withot that a have a erro: argument of type "const wchar_t *" is incompatible with parameter of type "LPCSTR" You're probably right, FS has restricted access to the sound device. I feel I need to study more about it, I am C # developer for 8 years and C language is a great paradigm for me. I will test the module "esound.dll" ps. Pete, I think its incredibly your expertise with software development, I feel proud to ask questions with you, thanks!
  5. Hi Pete, thanks for the answers. I got compile my gauge using the "makefile" and setup the project to compile with that. Now I want to play a sound in the gauge. I try call the function PlaySound(L"C:\\Games\\FS2004\\Sound\\X1.wav", NULL, SND_ASYNC | SND_LOOP); But, I hear only a beep, like a fail playing. I see in others forum people talking to use "DirectSound SDK" or "Gaugesound.dll". But I do not want to put a module to simple play a sound. And I leave a question: What is the easiest way to play a sound wave in a C Gauge?
  6. Hi Pete, I'm trying to build a plugin for FS9 also. Following your post I try to buid the Panels_SDK sample, using Visual Studio 2010 Express C++. I have some compilation problems: Seems that this can only be done in pure C, or does not work in C + +, I do not know. Can you show me some example of gauge made ​​in C + + that works? What is the best IDE to do this? Thanks!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.