1 Replies - 817 Views - Last Post: 04 December 2012 - 01:51 AM

#1 d0nni  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 55
  • Joined: 13-December 10

using SongCollection

Posted 03 December 2012 - 03:24 PM

Hi I'm wondering could anyone shed some light onto how i would use SongCollection.

im looking to have a script that will run through random songs in a list and play one of the songs.

problem is i cant quite find any information online which is helping me much when i search for "SongCollection xna"

Any help is greatly appreciated. thanks
Is This A Good Question/Topic? 0
  • +

Replies To: using SongCollection

#2 MrShoes  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 312
  • View blog
  • Posts: 488
  • Joined: 13-June 12

Re: using SongCollection

Posted 04 December 2012 - 01:51 AM

Maybe the MSDN page for SongCollection will help. But I suppose that depends on your knowledge of C#, since it doesn't give any examples of how to use it.

Just like the name suggests, you use it as a collection of Song instances, accessed through an indexer. Once the collection is populated, if you get a random number within the range of the indexer and use MediaPlayer to Play that song, you should get it.

Post some code if you get stuck.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1