volume of audio file

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
conde
Posts: 51
Joined: Sun Nov 27, 2011 10:41 am
Location: Stuttgart, Germany

volume of audio file

Post by conde » Sun Dec 04, 2011 7:13 pm

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

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3990
Joined: Sun Jan 07, 2007 9:12 pm
Location: Bochum, Germany

Re: volume of audio file

Post by bn » Sun Dec 04, 2011 7:30 pm

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

conde
Posts: 51
Joined: Sun Nov 27, 2011 10:41 am
Location: Stuttgart, Germany

Re: volume of audio file

Post by conde » Sun Dec 04, 2011 7:39 pm

Hallo Bernd (Danke)

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

conde
Posts: 51
Joined: Sun Nov 27, 2011 10:41 am
Location: Stuttgart, Germany

Re: volume of audio file

Post by conde » Sun Dec 04, 2011 7:41 pm

oops Sorry Bernd

set to 50 has no effect
set to 10 works fine

Danke again.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”