Re: [Audyssey] quick vb6 coding question
Hi, Yes I use DirectSound together with C++ to play sounds. Or in fact I try it, but I can't figure out what the easiest way is to load wavefiles into memory. However, there is that collection of classes called CSoundManager, which can do it. But I want to have my own functions, so I have to grab the code from those classes. And that's kinda difficult. - Original Message - From: Thomas Ward [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Tuesday, March 06, 2007 6:59 AM Subject: Re: [Audyssey] quick vb6 coding question Hi Davy, As I was saying before the number strings, which are usually just character arrays, can easily be referenced by using something like SubString. How, exactly you obtain the SubString depends on the language, but in .NET all languages C++, C#, and VB.NET just call substring as it is apart of the string class. As for creating and loading files are you using DirectX DirectSound? Loading files in VB and DirectX is not very difficult. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.
Re: [Audyssey] quick vb6 coding question
I managed to do it making my own classes, but I'd suggest at least using the CWaveFile class. I believe the file is in samples\C++\common\DXUTSound.cpp, but don't have the SDK on this machine, so can't be sure. That one has most of the ugly details of loading buffers from wave files. That's one advantage managed DirectX has going for it. - Original Message - From: Davy Kager [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Tuesday, March 06, 2007 7:56 AM Subject: Re: [Audyssey] quick vb6 coding question Hi, Yes I use DirectSound together with C++ to play sounds. Or in fact I try it, but I can't figure out what the easiest way is to load wavefiles into memory. However, there is that collection of classes called CSoundManager, which can do it. But I want to have my own functions, so I have to grab the code from those classes. And that's kinda difficult. - Original Message - From: Thomas Ward [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Tuesday, March 06, 2007 6:59 AM Subject: Re: [Audyssey] quick vb6 coding question Hi Davy, As I was saying before the number strings, which are usually just character arrays, can easily be referenced by using something like SubString. How, exactly you obtain the SubString depends on the language, but in .NET all languages C++, C#, and VB.NET just call substring as it is apart of the string class. As for creating and loading files are you using DirectX DirectSound? Loading files in VB and DirectX is not very difficult. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.
Re: [Audyssey] quick vb6 coding question
Yes that is the correct file (same as CSoundManager). - Original Message - From: Jacob Elsberry [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Tuesday, March 06, 2007 2:37 PM Subject: Re: [Audyssey] quick vb6 coding question I managed to do it making my own classes, but I'd suggest at least using the CWaveFile class. I believe the file is in samples\C++\common\DXUTSound.cpp, but don't have the SDK on this machine, so can't be sure. That one has most of the ugly details of loading buffers from wave files. That's one advantage managed DirectX has going for it. - Original Message - From: Davy Kager [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Tuesday, March 06, 2007 7:56 AM Subject: Re: [Audyssey] quick vb6 coding question Hi, Yes I use DirectSound together with C++ to play sounds. Or in fact I try it, but I can't figure out what the easiest way is to load wavefiles into memory. However, there is that collection of classes called CSoundManager, which can do it. But I want to have my own functions, so I have to grab the code from those classes. And that's kinda difficult. - Original Message - From: Thomas Ward [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Tuesday, March 06, 2007 6:59 AM Subject: Re: [Audyssey] quick vb6 coding question Hi Davy, As I was saying before the number strings, which are usually just character arrays, can easily be referenced by using something like SubString. How, exactly you obtain the SubString depends on the language, but in .NET all languages C++, C#, and VB.NET just call substring as it is apart of the string class. As for creating and loading files are you using DirectX DirectSound? Loading files in VB and DirectX is not very difficult. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.
Re: [Audyssey] quick vb6 coding question
I have changed to that as well, having used the other because that's what Justin used in chopper patrol. Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. - Original Message - From: Thomas Ward [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Monday, March 05, 2007 1:41 PM Subject: Re: [Audyssey] quick vb6 coding question Hi Liam, Agreed. I use status_playing as well in STFC, Monty, and Raceway. Liam Erven wrote: Ken. I prefer to use DSCBSTATUS_PLAYING but opinions differ - Original Message - From: Ken the Crazy [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Sunday, March 04, 2007 9:34 PM Subject: Re: [Audyssey] quick vb6 coding question Actually, there is a way to see if a file is playing. Here is the sequence. I feel dumb because I asked about it on list and it's right there in my enemy attack game. Do While dsStartup.GetStatus = DSCBSTATUS_CAPTURING DoEvents Loop Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. - Original Message - From: Azabat Software (Steve Crawford) [EMAIL PROTECTED] To: Ken the Crazy [EMAIL PROTECTED]; Gamers Discussion list gamers@audyssey.org Sent: Friday, March 02, 2007 6:17 PM Subject: Re: [Audyssey] quick vb6 coding question Well, there's at least 3 different answers depending on your approach. There's the whole DirectX approach using DirectSound, or you can use an ActiveX multimedia control or you can use the Windows API. I used a multimedia control in the early days but had some compatibility problems and on some systems there were huge delays between playing the WAV files which made the games unusable. I now use the API because it works on anything and doesn't give hassles but the problem I have with it is that you issue a command to play a WAV file but you can't check the status to see if it's finished. Consequently, I have to use the sync and async flags - sync means play the WAV before you process the next command and async carries on. So, if the score is made of several WAV files I'd have to play all but the last one in sync mode, which means the computer isn't doing anything else - like processing the keyboard - while the score is being announced. Azabat Software Computer Games for Blind and Partially Sighted Beginners Tel: 07740 777 364 Email: [EMAIL PROTECTED] Web: www.azabat.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ken the Crazy Sent: 02 March 2007 10:20 To: Gamers Discussion list Subject: [Audyssey] quick vb6 coding question Hey yall, Could anyone point me in the right direction as to how to code the speaking of a player's score using wave files? I know, of course, how to set up the files, just not how or when to play them, or how to cue them so they don't play all at once. also, how do you check to see if a sound is playing? Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. __ NOD32 2088 (20070302) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.413 / Virus Database: 268.18.6/709 - Release Date: 3/3/2007 ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.413 / Virus Database
Re: [Audyssey] quick vb6 coding question
H, Can someone maybe give me some clue about how to produce numbers like one-thousand-two-hundred-twenty-five? At the moment I even can't load a sound into a buffer, but I'm sure it will become very useful to know how to produce scores... - Original Message - From: Thomas Ward [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Monday, March 05, 2007 7:41 PM Subject: Re: [Audyssey] quick vb6 coding question Hi Liam, Agreed. I use status_playing as well in STFC, Monty, and Raceway. Liam Erven wrote: Ken. I prefer to use DSCBSTATUS_PLAYING but opinions differ - Original Message - From: Ken the Crazy [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Sunday, March 04, 2007 9:34 PM Subject: Re: [Audyssey] quick vb6 coding question Actually, there is a way to see if a file is playing. Here is the sequence. I feel dumb because I asked about it on list and it's right there in my enemy attack game. Do While dsStartup.GetStatus = DSCBSTATUS_CAPTURING DoEvents Loop Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. - Original Message - From: Azabat Software (Steve Crawford) [EMAIL PROTECTED] To: Ken the Crazy [EMAIL PROTECTED]; Gamers Discussion list gamers@audyssey.org Sent: Friday, March 02, 2007 6:17 PM Subject: Re: [Audyssey] quick vb6 coding question Well, there's at least 3 different answers depending on your approach. There's the whole DirectX approach using DirectSound, or you can use an ActiveX multimedia control or you can use the Windows API. I used a multimedia control in the early days but had some compatibility problems and on some systems there were huge delays between playing the WAV files which made the games unusable. I now use the API because it works on anything and doesn't give hassles but the problem I have with it is that you issue a command to play a WAV file but you can't check the status to see if it's finished. Consequently, I have to use the sync and async flags - sync means play the WAV before you process the next command and async carries on. So, if the score is made of several WAV files I'd have to play all but the last one in sync mode, which means the computer isn't doing anything else - like processing the keyboard - while the score is being announced. Azabat Software Computer Games for Blind and Partially Sighted Beginners Tel: 07740 777 364 Email: [EMAIL PROTECTED] Web: www.azabat.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ken the Crazy Sent: 02 March 2007 10:20 To: Gamers Discussion list Subject: [Audyssey] quick vb6 coding question Hey yall, Could anyone point me in the right direction as to how to code the speaking of a player's score using wave files? I know, of course, how to set up the files, just not how or when to play them, or how to cue them so they don't play all at once. also, how do you check to see if a sound is playing? Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. __ NOD32 2088 (20070302) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.413 / Virus Database: 268.18.6/709 - Release Date: 3/3/2007 ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED
Re: [Audyssey] quick vb6 coding question
Hi Davie, The basic methodology for reproducing a spoken number is to pass the number as a string to your speak number function then have the string be parced in to individual pieces. You would fstart by getting the string length wich would determin if you are dealing with a single digit, double digit, triple digit, and so on. You would then pass that info on to a special function that then breaks downt he string in to ones, tens, hundres, etc and speaks each part of the string array in sequence. It would look something like this. void SpeakNumber(string number) { switch (number.Length()) { case 1: SpeakOnes(number); break; case 2: SpeakTens(number); break; case 3: SpeakHundreds((number); break; } } void SpeakOnes(string number) { if (number == 1) { number1.Play(0, BufferPlayFlags.Default); while (number1.Status.Playing == true) { application.DoEvents(); } } } For more complex numbers like hundreds, thousands, etc the code gets allot more complex as you have to check each part of the array by searshing for the index, and returning what value is stored there. If you are having issues with loading and playing wav files the nuimber code is still a ways off before you can skillfully create a method to handle this. Davy Kager wrote: Can someone maybe give me some clue about how to produce numbers like one-thousand-two-hundred-twenty-five? At the moment I even can't load a sound into a buffer, but I'm sure it will become very useful to know how to produce scores... ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.
Re: [Audyssey] quick vb6 coding question
I see that I already was thinking in the right way! I would have used an array, but a (char) string is an array, so that's fine. And a little explanation about the problem with loading files into buffers; there seems to be no function like CreateSoundBufferFromFile (Visual Basc) in the C++ version, so I have to use the Win32 API. And that's a pain to implement in the way that I want it to be. - Original Message - From: Thomas Ward [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Monday, March 05, 2007 8:29 PM Subject: Re: [Audyssey] quick vb6 coding question Hi Davie, The basic methodology for reproducing a spoken number is to pass the number as a string to your speak number function then have the string be parced in to individual pieces. You would fstart by getting the string length wich would determin if you are dealing with a single digit, double digit, triple digit, and so on. You would then pass that info on to a special function that then breaks downt he string in to ones, tens, hundres, etc and speaks each part of the string array in sequence. It would look something like this. void SpeakNumber(string number) { switch (number.Length()) { case 1: SpeakOnes(number); break; case 2: SpeakTens(number); break; case 3: SpeakHundreds((number); break; } } void SpeakOnes(string number) { if (number == 1) { number1.Play(0, BufferPlayFlags.Default); while (number1.Status.Playing == true) { application.DoEvents(); } } } For more complex numbers like hundreds, thousands, etc the code gets allot more complex as you have to check each part of the array by searshing for the index, and returning what value is stored there. If you are having issues with loading and playing wav files the nuimber code is still a ways off before you can skillfully create a method to handle this. Davy Kager wrote: Can someone maybe give me some clue about how to produce numbers like one-thousand-two-hundred-twenty-five? At the moment I even can't load a sound into a buffer, but I'm sure it will become very useful to know how to produce scores... ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.
Re: [Audyssey] quick vb6 coding question
Hi Davy, As I was saying before the number strings, which are usually just character arrays, can easily be referenced by using something like SubString. How, exactly you obtain the SubString depends on the language, but in .NET all languages C++, C#, and VB.NET just call substring as it is apart of the string class. As for creating and loading files are you using DirectX DirectSound? Loading files in VB and DirectX is not very difficult. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.
Re: [Audyssey] quick vb6 coding question
Actually, there is a way to see if a file is playing. Here is the sequence. I feel dumb because I asked about it on list and it's right there in my enemy attack game. Do While dsStartup.GetStatus = DSCBSTATUS_CAPTURING DoEvents Loop Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. - Original Message - From: Azabat Software (Steve Crawford) [EMAIL PROTECTED] To: Ken the Crazy [EMAIL PROTECTED]; Gamers Discussion list gamers@audyssey.org Sent: Friday, March 02, 2007 6:17 PM Subject: Re: [Audyssey] quick vb6 coding question Well, there's at least 3 different answers depending on your approach. There's the whole DirectX approach using DirectSound, or you can use an ActiveX multimedia control or you can use the Windows API. I used a multimedia control in the early days but had some compatibility problems and on some systems there were huge delays between playing the WAV files which made the games unusable. I now use the API because it works on anything and doesn't give hassles but the problem I have with it is that you issue a command to play a WAV file but you can't check the status to see if it's finished. Consequently, I have to use the sync and async flags - sync means play the WAV before you process the next command and async carries on. So, if the score is made of several WAV files I'd have to play all but the last one in sync mode, which means the computer isn't doing anything else - like processing the keyboard - while the score is being announced. Azabat Software Computer Games for Blind and Partially Sighted Beginners Tel: 07740 777 364 Email: [EMAIL PROTECTED] Web: www.azabat.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ken the Crazy Sent: 02 March 2007 10:20 To: Gamers Discussion list Subject: [Audyssey] quick vb6 coding question Hey yall, Could anyone point me in the right direction as to how to code the speaking of a player's score using wave files? I know, of course, how to set up the files, just not how or when to play them, or how to cue them so they don't play all at once. also, how do you check to see if a sound is playing? Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. __ NOD32 2088 (20070302) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.413 / Virus Database: 268.18.6/709 - Release Date: 3/3/2007 ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.
Re: [Audyssey] quick vb6 coding question
Ken. I prefer to use DSCBSTATUS_PLAYING but opinions differ - Original Message - From: Ken the Crazy [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Sunday, March 04, 2007 9:34 PM Subject: Re: [Audyssey] quick vb6 coding question Actually, there is a way to see if a file is playing. Here is the sequence. I feel dumb because I asked about it on list and it's right there in my enemy attack game. Do While dsStartup.GetStatus = DSCBSTATUS_CAPTURING DoEvents Loop Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. - Original Message - From: Azabat Software (Steve Crawford) [EMAIL PROTECTED] To: Ken the Crazy [EMAIL PROTECTED]; Gamers Discussion list gamers@audyssey.org Sent: Friday, March 02, 2007 6:17 PM Subject: Re: [Audyssey] quick vb6 coding question Well, there's at least 3 different answers depending on your approach. There's the whole DirectX approach using DirectSound, or you can use an ActiveX multimedia control or you can use the Windows API. I used a multimedia control in the early days but had some compatibility problems and on some systems there were huge delays between playing the WAV files which made the games unusable. I now use the API because it works on anything and doesn't give hassles but the problem I have with it is that you issue a command to play a WAV file but you can't check the status to see if it's finished. Consequently, I have to use the sync and async flags - sync means play the WAV before you process the next command and async carries on. So, if the score is made of several WAV files I'd have to play all but the last one in sync mode, which means the computer isn't doing anything else - like processing the keyboard - while the score is being announced. Azabat Software Computer Games for Blind and Partially Sighted Beginners Tel: 07740 777 364 Email: [EMAIL PROTECTED] Web: www.azabat.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ken the Crazy Sent: 02 March 2007 10:20 To: Gamers Discussion list Subject: [Audyssey] quick vb6 coding question Hey yall, Could anyone point me in the right direction as to how to code the speaking of a player's score using wave files? I know, of course, how to set up the files, just not how or when to play them, or how to cue them so they don't play all at once. also, how do you check to see if a sound is playing? Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. __ NOD32 2088 (20070302) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.413 / Virus Database: 268.18.6/709 - Release Date: 3/3/2007 ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.
Re: [Audyssey] quick vb6 coding question
oh? dsbstatus_playing is the one i use. regards, damien - Original Message - From: Ken the Crazy [EMAIL PROTECTED] To: Gamers Discussion list gamers@audyssey.org Sent: Monday, March 05, 2007 3:34 AM Subject: Re: [Audyssey] quick vb6 coding question Actually, there is a way to see if a file is playing. Here is the sequence. I feel dumb because I asked about it on list and it's right there in my enemy attack game. Do While dsStartup.GetStatus = DSCBSTATUS_CAPTURING DoEvents Loop Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. - Original Message - From: Azabat Software (Steve Crawford) [EMAIL PROTECTED] To: Ken the Crazy [EMAIL PROTECTED]; Gamers Discussion list gamers@audyssey.org Sent: Friday, March 02, 2007 6:17 PM Subject: Re: [Audyssey] quick vb6 coding question Well, there's at least 3 different answers depending on your approach. There's the whole DirectX approach using DirectSound, or you can use an ActiveX multimedia control or you can use the Windows API. I used a multimedia control in the early days but had some compatibility problems and on some systems there were huge delays between playing the WAV files which made the games unusable. I now use the API because it works on anything and doesn't give hassles but the problem I have with it is that you issue a command to play a WAV file but you can't check the status to see if it's finished. Consequently, I have to use the sync and async flags - sync means play the WAV before you process the next command and async carries on. So, if the score is made of several WAV files I'd have to play all but the last one in sync mode, which means the computer isn't doing anything else - like processing the keyboard - while the score is being announced. Azabat Software Computer Games for Blind and Partially Sighted Beginners Tel: 07740 777 364 Email: [EMAIL PROTECTED] Web: www.azabat.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ken the Crazy Sent: 02 March 2007 10:20 To: Gamers Discussion list Subject: [Audyssey] quick vb6 coding question Hey yall, Could anyone point me in the right direction as to how to code the speaking of a player's score using wave files? I know, of course, how to set up the files, just not how or when to play them, or how to cue them so they don't play all at once. also, how do you check to see if a sound is playing? Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. __ NOD32 2088 (20070302) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.413 / Virus Database: 268.18.6/709 - Release Date: 3/3/2007 ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.
Re: [Audyssey] quick vb6 coding question
hi ken, if you email me offlist i can help you if you like. do you have msn? i can go through a few things if you like. i've gotten quite far in vb now, farther than i ever thought i'd get lol. regards, damien - Original Message - From: Ken the Crazy [EMAIL PROTECTED] To: Gamers Discussion list Gamers@audyssey.org Sent: Friday, March 02, 2007 10:20 AM Subject: [Audyssey] quick vb6 coding question Hey yall, Could anyone point me in the right direction as to how to code the speaking of a player's score using wave files? I know, of course, how to set up the files, just not how or when to play them, or how to cue them so they don't play all at once. also, how do you check to see if a sound is playing? Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.
Re: [Audyssey] quick vb6 coding question
Well, there's at least 3 different answers depending on your approach. There's the whole DirectX approach using DirectSound, or you can use an ActiveX multimedia control or you can use the Windows API. I used a multimedia control in the early days but had some compatibility problems and on some systems there were huge delays between playing the WAV files which made the games unusable. I now use the API because it works on anything and doesn't give hassles but the problem I have with it is that you issue a command to play a WAV file but you can't check the status to see if it's finished. Consequently, I have to use the sync and async flags - sync means play the WAV before you process the next command and async carries on. So, if the score is made of several WAV files I'd have to play all but the last one in sync mode, which means the computer isn't doing anything else - like processing the keyboard - while the score is being announced. Azabat Software Computer Games for Blind and Partially Sighted Beginners Tel: 07740 777 364 Email: [EMAIL PROTECTED] Web: www.azabat.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ken the Crazy Sent: 02 March 2007 10:20 To: Gamers Discussion list Subject: [Audyssey] quick vb6 coding question Hey yall, Could anyone point me in the right direction as to how to code the speaking of a player's score using wave files? I know, of course, how to set up the files, just not how or when to play them, or how to cue them so they don't play all at once. also, how do you check to see if a sound is playing? Ken Downey President DreamTechInteractive! And, Coming soon, Blind Comfort! The pleasant way to get a massage--no staring, just caring. ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web. __ NOD32 2088 (20070302) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com ___ Gamers mailing list .. Gamers@audyssey.org To unsubscribe send E-mail to [EMAIL PROTECTED] You can visit http://audyssey.org/mailman/listinfo/gamers_audyssey.org to make any subscription changes via the web.