Page 1 of 1

volume of audio file

Posted: Sun Dec 04, 2011 7:13 pm
by conde
Hello,

how to set the volume (loudness) of a audio file

set the ?volume? of audioClip to 50 ??????
play audioClip id 1015

thanks in advance for help

Re: volume of audio file

Posted: Sun Dec 04, 2011 7:30 pm
by bn
Hi Conde,

look at playLoudness in the dictionary, there is an example for audioclips.

Or just

Code: Select all

set the playLoudness of audioclip id 1015 to xx
where xx goes from 0 (no sound) to 100 (max volume)

Kind regards

Bernd

Re: volume of audio file

Posted: Sun Dec 04, 2011 7:39 pm
by conde
Hallo Bernd (Danke)

yes I found this in the dic. But
set playLoudness does not work with a 44kHz/16bit aif file here.

Re: volume of audio file

Posted: Sun Dec 04, 2011 7:41 pm
by conde
oops Sorry Bernd

set to 50 has no effect
set to 10 works fine

Danke again.