Utter New Boy

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Damlimey
Posts: 31
Joined: Sun May 31, 2009 10:56 am

Utter New Boy

Post by Damlimey » Sun May 31, 2009 11:39 am

Hi all,

Utterly new to Revolution so please allow for my ignorance. I am trying to develop an audio application, to play various formats by essentially having a page of buttons. Each button can be loaded with a music track, and pressing the button plays the track.

Is this something that I can create with Revolution Studio and if it is, how do I get started?

Thanks in advance,

G

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sun May 31, 2009 1:12 pm

Hi G
(Damlimey = funny name or self-awareness? :-D Just kidding!)

this sounds pretty straightforward!
Create as much (invisible?) player objects as you need and two buttons
for each player "Load..." and "Play", know what I mean?

Script of btn load:

Code: Select all

on mouseup

  ## Show file dialog with only the defined filetypes!
  answer file "Select an audio file:" with type "Soundfiles|aif,aiff,wav,au,mp3|"
  if it <> empty then
    set the filename of player "Your player here" to it
  end if
end mouseup
Script of btn "Play"

Code: Select all

on mouseup
  start player "Your player here"
end mouseup
Hope that helps.


Best from germany

Klaus

Damlimey
Posts: 31
Joined: Sun May 31, 2009 10:56 am

Thank you

Post by Damlimey » Sun May 31, 2009 5:17 pm

Thank you for that Klaus, damlimey comes from years of working in the States, always getting called "that damn limey!" From your reply, am I right in thinking that I need a player external to anything in revolution? Is there a recommended engine for that?

Thank again,

G

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Post by mwieder » Sun May 31, 2009 5:31 pm

G- No, that's just the QuickTime player object in rev.

Post Reply