samples/07_advanced_audio/01_audio_mixer/app/main.rb
# these are the properties that you can sent on args.audio
these are the properties that you can sent on args.audio
these are the properties that you can sent on args . audio
def spawn_new_sound args, name, path
  screenx = (rand * 600.0) + 200.0
  screeny = (rand * 400.0) + 100.0
  id = new_sound_id! args
  args.audio[id] = {
    name: name,
    input: path,
    screenx: screenx,
    screeny: screeny,
    x: ((screenx / 1279.0) * 2.0) - 1.0,  
    y: ((screeny / 719.0) * 2.0) - 1.0,   
    z: 0.0,
    gain: 1.0,
    pitch: 1.0,
    looping: true,
    paused: false
  }
  args.state.selected = id
end
def spawn_new_sound args , name , path screenx = ( rand * 600.0 ) + 200.0 screeny = ( rand * 400.0 ) + 100.0 id = new_sound_id! args args . audio [ id ] = { name : name , input : path , screenx : screenx , screeny : screeny , x : ( ( screenx / 1279.0 ) * 2.0 ) - 1.0 , y : ( ( screeny / 719.0 ) * 2.0 ) - 1.0 , z : 0.0 , gain : 1.0 , pitch : 1.0 , looping : true , paused : false } args . state . selected = id end
these are the properties that you can sent on args.audio
these are the properties that you can sent on args . audio
# Spawn randomly in an area that won't be covered by UI. # you can hang anything on the audio hashes you want, so we store the #  actual screen position in here for convenience. # scale to -1.0 - 1.0 range # scale to -1.0 - 1.0 range
args
name
path