Steve, Here is the code that I am using to set volume and play a file. Every time it is executed I get the same error in the log file which is listed below. First my code:
mySoundID = SOAudioKit.Load(FileName) If SOAudioKit.IsValid(MySoundID) Then Vol = Volume/10 speak vol sleep 500 SOAudioKit.SetVolume (MySoundID), Vol SOAudioKit.Play MySoundID End If This was tried showing volume results between 0.1 through 1.0. The volume adjustment works fine, but it still generates a line in the error log every time. Here is the error log: pythoncom warning: Too many results supplied - 2 supplied, but only 1 can be set pythoncom warning: Too many results supplied - 2 supplied, but only 1 can be set pythoncom warning: Too many results supplied - 2 supplied, but only 1 can be set pythoncom warning: Too many results supplied - 2 supplied, but only 1 can be set pythoncom warning: Too many results supplied - 2 supplied, but only 1 can be set pythoncom warning: Too many results supplied - 2 supplied, but only 1 can be set Jeff Weiss -----Original Message----- From: Stephen Clower [mailto:[email protected]] Sent: Thursday, September 29, 2011 6:55 AM To: [email protected] Subject: Re: AudioKit ID numbers Jeff, As you have discovered, sound ID numbers start at 0. I am not seeing the errors when setting the volume of existing sounds. Have you verified that you are passing a valid volume to the SetVolume() method? Remember it must fall between 0 and 1. Steve On 9/28/2011 4:12 PM, Jeff Weiss wrote: > Steve and others, > > I just realized that the audioKit starts using ID numbers beginning with > the number 0, 1, 2 etc. > > I sometimes couldn't get the first item to play because I was testing to > see if it were greater than 0. > > I need to take that test out, and only using the IsValid, or IsPlaying > tests. > > > > Have you figured out a was to adjust the volume that won't add error > lines to the log file? > > Thanks, > > > > > > Jeff Weiss, CVRT > > Rehabilitation Teacher > > World Services for the Blind > > 2811 Fair Park Blvd. > > Little Rock, AR 72204 > > > > http://www.lwsb.org > > > > The Mission of WSB is to educate adults who are blind or visually > impaired for careers and independent lives. > > > > -- Stephen Clower Product support specialist GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825 260-489-3671 * gwmicro.com
