If I comment out the volume setting line, no errors are added to the
log.
The way I understand we have to set the volume is that it needs to be
set for each song that is being played, so if you used my musicMenu app
to listen to 50 songs, you would get this error line added to the log
for each of the 50 songs.
I can leave it like that for now, and my app will still work.
Jeff weiss


-----Original Message-----
From: Stephen Clower [mailto:[email protected]] 
Sent: Thursday, September 29, 2011 10:12 AM
To: [email protected]
Subject: Re: AudioKit ID numbers

Jeff,

The error you mention can be ignored for now as it is a warning that I 
am still tracking down. Are you seeing this happen only when setting the

volume? If you delete the log, comment out your volume-specific code, 
and rerun your app, do you still see the error?

Steve



On 9/29/2011 9:24 AM, Jeff Weiss wrote:
> 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

Reply via email to