<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>silverfox98201's Feed - Programmer's Heaven</title>
    <link>http://www.programmersheaven.com/feed/User/328064/RSS.aspx</link>
    <description>Events at Programmer's Heaven related to the user silverfox98201.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 21 May 2013 14:28:53 -0700</pubDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <item>
      <title>Re: sound</title>
      <link />
      <description>&lt;p&gt;Posted the message 'Re: sound' on the Beginner VB forum.&lt;/p&gt;: : Out is an inpout command to turn on and off  one of the Parallel &lt;br /&gt;
: : port pins. The operate the automations.&lt;br /&gt;
: : Here,s the compltet program:&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: The code looks solid.&lt;br /&gt;
: One thing I can think of is that perhaps your sound file is &lt;br /&gt;
: corrupted? Does it play the full length in a media player?&lt;br /&gt;
: Another thing might be that the sound file is too big and does not &lt;br /&gt;
: fit fully in physical memory (or the sndPlaySound thinks it won't &lt;br /&gt;
: fit). What size is it?&lt;br /&gt;
: &lt;br /&gt;
: One remark though: it's advised to not use End to terminate the &lt;br /&gt;
: program, except in extreme cases. Instead, you can use Unload Me to &lt;br /&gt;
: unload the form and cause the program to terminate itself because &lt;br /&gt;
: all forms have been closed.&lt;br /&gt;
: Best Regards,&lt;br /&gt;
: Richard&lt;br /&gt;
: &lt;br /&gt;
: The way I see it... Well, it's all pretty blurry&lt;br /&gt;
&lt;br /&gt;
The file is about 7 megs. It's funny, I have built up this display over the course of 5 years, adding a new character each year. I used my laptop ( with windows me ) to run the program and it worked fine, untill I upgraded to xp.&lt;br /&gt;
I am basically croppin the full song wave down to a shorter&lt;br /&gt;
length with a program called Audacity. I lost my audio  files and had to redo them this year and that is when the problem started but it's only with Monster Mash. &lt;br /&gt;
Thanks for all the help. This is the only VB programming i have done much with.&lt;br /&gt;</description>
      <pubDate>Thu, 09 Oct 2008 16:50:58 -0700</pubDate>
    </item>
    <item>
      <title>Re: sound</title>
      <link />
      <description>&lt;p&gt;Posted the message 'Re: sound' on the Beginner VB forum.&lt;/p&gt;: : I trying to get this to work, but it stops before the end of the wav &lt;br /&gt;
: : file. This is part of a larger program. &lt;br /&gt;
: : I used the same code for several shorter sound effects, ahead of &lt;br /&gt;
: : ahead of this one, and those lines work just fine. This is the last &lt;br /&gt;
: : line of the program. The wave file is  about 9 seconds cut from the &lt;br /&gt;
: : original wave file. I am using vb6.0 professional and windows xp. &lt;br /&gt;
: : The sound module is as follows:&lt;br /&gt;
: : &lt;br /&gt;
: : Public Declare Function sndPlaySound Lib "winmm.dll" Alias &lt;br /&gt;
: : "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As &lt;br /&gt;
: : Long) As Long&lt;br /&gt;
: : &lt;br /&gt;
: : 'monsters sing&lt;br /&gt;
: : Private Sub Timer08_Timer() '500ms&lt;br /&gt;
: : Out 888, 176                'turn on automation&lt;br /&gt;
: : sndPlaySound App.Path &amp;amp; "\Monster Mash.wav", SND_ASYNC&lt;br /&gt;
: : Out 888, 0                  'turn off automation&lt;br /&gt;
: : Timer08.Enabled = False&lt;br /&gt;
: : Utimer01.Enabled = True&lt;br /&gt;
: : End Sub&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: You're playing it asynchronous, so probably a piece of code &lt;br /&gt;
: somewhere else is causing it to get cut off mid-song. Or perhaps &lt;br /&gt;
: your program terminates before the song has managed to complete? Try &lt;br /&gt;
: running through it with the debugger, to see what code is executed &lt;br /&gt;
: and where the play stops.&lt;br /&gt;
: (BTW, what's Out ?)&lt;br /&gt;
: Best Regards,&lt;br /&gt;
: Richard&lt;br /&gt;
: &lt;br /&gt;
: The way I see it... Well, it's all pretty blurry&lt;br /&gt;
.&lt;br /&gt;
Out is an inpout command to turn on and off  one of the Parallel port pins. The operate the automations.&lt;br /&gt;
Here,s the compltet program:&lt;br /&gt;
&lt;br /&gt;
 'Override 20 minute timer and start program&lt;br /&gt;
Private Sub cmdOverride_Click()&lt;br /&gt;
utimerCTL1.Enabled = False&lt;br /&gt;
Out 888, 1       'Start lightning pulse&lt;br /&gt;
Timer01.Enabled = True&lt;br /&gt;
End Sub&lt;br /&gt;
'Main program start&lt;br /&gt;
Private Sub cmdStart_Click()&lt;br /&gt;
Out 888, 1       'start lightning pulse&lt;br /&gt;
Timer01.Enabled = True&lt;br /&gt;
End Sub&lt;br /&gt;
'End program&lt;br /&gt;
Private Sub cmdStop_Click()&lt;br /&gt;
End&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
'Lightning flashes and play thunder wav&lt;br /&gt;
Private Sub Timer01_Timer() '20ms&lt;br /&gt;
cmdOverride.Caption = "Do Not Press"&lt;br /&gt;
Out 888, 0                 'Stop lightning pulse&lt;br /&gt;
sndPlaySound App.Path &amp;amp; "\Thunder.wav", SND_ASYNC&lt;br /&gt;
Timer01.Enabled = False&lt;br /&gt;
Out 888, 2                'Start witch head up/eyes on pulse&lt;br /&gt;
Timer02.Enabled = True&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
'head up and eyes light and play cackle wav&lt;br /&gt;
Private Sub Timer02_Timer() '20ms&lt;br /&gt;
Out 888, 0                    'Stop witch head up/eyes on pulse&lt;br /&gt;
sndPlaySound App.Path &amp;amp; "\Cackle.wav", SND_ASYNC&lt;br /&gt;
Timer02.Enabled = False&lt;br /&gt;
Out 888, 2                      'Start head down and eyes off pulse&lt;br /&gt;
Timer03.Enabled = True&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
'Head lowers/eyes off&lt;br /&gt;
Private Sub Timer03_Timer() '20ms&lt;br /&gt;
Out 888, 0                    'Stop head down and eyes off pulse&lt;br /&gt;
Timer03.Enabled = False&lt;br /&gt;
Timer04.Enabled = True&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Private Sub Timer04_Timer() '1 Second&lt;br /&gt;
Out 888, 4                  'Start Toumbstone up pulse&lt;br /&gt;
Timer04.Enabled = False&lt;br /&gt;
Timer05.Enabled = True&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
'Toumbstone raises&lt;br /&gt;
Private Sub Timer05_Timer() '20ms&lt;br /&gt;
Out 888, 64                  'Stop toumbstone up pules&lt;br /&gt;
sndPlaySound App.Path &amp;amp; "\Moan.wav", SND_ASYNC&lt;br /&gt;
Timer05.Enabled = False&lt;br /&gt;
Out 888, 4                     'Start Toumbstone down&lt;br /&gt;
Timer06.Enabled = True&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
'Toumbstone lowers&lt;br /&gt;
Private Sub Timer06_Timer() '20ms&lt;br /&gt;
Out 888, 64                    'Stop Toumbstone down pulse&lt;br /&gt;
sndPlaySound App.Path &amp;amp; "\Moan2.wav", SND_ASYNC&lt;br /&gt;
Timer06.Enabled = False&lt;br /&gt;
Timer07.Enabled = True&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
'Skulls Scream&lt;br /&gt;
Private Sub Timer07_Timer() '250ms&lt;br /&gt;
Out 888, 40                 'Timer stops/Screamers start&lt;br /&gt;
sndPlaySound App.Path &amp;amp; "\Scream.wav", SND_ASYNC&lt;br /&gt;
Out 888, 0                   'Screamers stop&lt;br /&gt;
Timer07.Enabled = False&lt;br /&gt;
Timer08.Enabled = True&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
'monsters sing&lt;br /&gt;
Private Sub Timer08_Timer() '500ms&lt;br /&gt;
Out 888, 176&lt;br /&gt;
sndPlaySound App.Path &amp;amp; "\Monster Mash.wav", SND_ASYNC&lt;br /&gt;
Out 888, 0                  'System reset&lt;br /&gt;
Timer08.Enabled = False&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Thu, 09 Oct 2008 07:06:12 -0700</pubDate>
    </item>
    <item>
      <title>sound</title>
      <link />
      <description>&lt;p&gt;Posted the message 'sound' on the Beginner VB forum.&lt;/p&gt;I trying to get this to work, but it stops before the end of the wav file. This is part of a larger program. &lt;br /&gt;
I used the same code for several shorter sound effects, ahead of ahead of this one, and those lines work just fine. This is the last line of the program. The wave file is  about 9 seconds cut from the original wave file. I am using vb6.0 professional and windows xp. The sound module is as follows:&lt;br /&gt;
&lt;br /&gt;
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long&lt;br /&gt;
&lt;br /&gt;
'monsters sing&lt;br /&gt;
Private Sub Timer08_Timer() '500ms&lt;br /&gt;
Out 888, 176                'turn on automation&lt;br /&gt;
sndPlaySound App.Path &amp;amp; "\Monster Mash.wav", SND_ASYNC&lt;br /&gt;
Out 888, 0                  'turn off automation&lt;br /&gt;
Timer08.Enabled = False&lt;br /&gt;
Utimer01.Enabled = True&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Wed, 08 Oct 2008 13:41:29 -0700</pubDate>
    </item>
  </channel>
</rss>