require '../src/ClanRuby'
include ClanRuby

#
# This sample shows how to play a simple wav file.
#
# Note that the clanlib sound support is still a bit flakey
#

#
# Initialize the core and sound libs.
#
SetupCore.init()
SetupSound.init()


drives = CDAudio.drives
puts 'drives', drives
firstDrive=CDAudio.drives[0]
puts 'first', firstDrive

firstDrive.playTracks(1,3)

puts 'playing'

#
# Draw some boxes
#
while ( true )
    System.keepAlive(20)
    System.sleep(20)
end



#
# Clean up
#
SetupSound.deinit()
SetupCore.deinit()




