Is there a volume type comand for sound in turing?
Author |
Message |
Dragoth
|
Posted: Mon May 05, 2008 10:42 pm Post subject: Is there a volume type comand for sound in turing? |
|
|
i am attempting a fade kind of effect with a music clip before stopping the sound. Is this possible, if so how, if not any other ways other than modifying the sound clip it's self |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Clayton

|
Posted: Mon May 05, 2008 11:23 pm Post subject: RE:Is there a volume type comand for sound in turing? |
|
|
To the best of my knowledge, no such procedure/function exists within the Turing language to handle such a request. Your best bet is to double check the Help File (F10) just to be sure, but don't get your hopes up. |
|
|
|
|
 |
Tony

|
Posted: Mon May 05, 2008 11:34 pm Post subject: RE:Is there a volume type comand for sound in turing? |
|
|
Turing doesn't have access to system's volume controls.
I doubt that you can apply filters to Music.PlayFile call. I guess you can check the documentation to be sure, but it's highly unlikely.
Without modifying the file, I suppose your next option would be to read the file's binary, decode it yourself, and interpret it via playing a series of tones. Though even then, I think you can only control the frequency, not the amplitude of the sound. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
Dan

|
Posted: Tue May 06, 2008 1:04 am Post subject: RE:Is there a volume type comand for sound in turing? |
|
|
As tony hinted at, the best option might be to use some sound file eidting program to make serveral diffrent versions of the files at diffrent amplitudes/volumes and then have turing use the one corsponding to the volume level you want.
For just a fade effect, it would be best to just edit the music file to have the fade. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
 |
Dragoth
|
Posted: Tue May 06, 2008 8:41 pm Post subject: Re: Is there a volume type comand for sound in turing? |
|
|
k Thanks figured as much but figured would check anyway |
|
|
|
|
 |
|
|