Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Feature request
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 05-12-2008, 08:43 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Proper sound control

PHP Code:
snd = new Sound("jfbepop.mid");
snd.play(0,3000); // play from 0 to 3 seconds
snd.volume 0.5// 50% volume 
Would be good if the Sound object actually did anything imho. Plus I kinda need this for GK so if you don't mind Stefan?
__________________

Reply With Quote
  #2  
Old 05-12-2008, 11:08 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Sound object type, you mean?
In your example, the objects are snd and jfbepop.mid.
__________________
Do it with a DON!
Reply With Quote
  #3  
Old 05-12-2008, 11:47 AM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Actually in my example, Sound is a class, with the constructor param "jfbebop.mid" and snd is an instance of the Sound class. So technically the only object 'round here is snd :P

Ah wishful thinking x-x
__________________

Reply With Quote
  #4  
Old 05-12-2008, 07:09 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Robin View Post
Actually in my example, Sound is a class, with the constructor param "jfbebop.mid" and snd is an instance of the Sound class. So technically the only object 'round here is snd :P

Ah wishful thinking x-x
This is GS2, not some other programming language that you may be thinking. Sound is an object type and snd and jfbebop.mid are objects.
__________________
Do it with a DON!
Reply With Quote
  #5  
Old 05-12-2008, 07:18 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
There is a Sound object type, but for compatibility with flash scripts only (its not doing anything right now). You should use play2(soundfile, x, y, volume)
Reply With Quote
  #6  
Old 05-12-2008, 07:22 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
I don't think he needs to change the x/y of the song, he wants to start at a certain point in the song, like 1 minute into the song.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #7  
Old 05-12-2008, 09:15 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Yes I'd like to play from an index of the sound file.

Infact I have already asked for this four years ago x.x
__________________

Reply With Quote
  #8  
Old 05-12-2008, 10:58 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
People have requested this before.

This would be awesome (for example, have a way to download songs from a web server before playing them, and then be notified when done, then be able to control (would allow DDR for Graal, etc)
__________________
Reply With Quote
  #9  
Old 05-12-2008, 11:16 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I would love more sound functionality in Graal in any shape or form.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:19 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.