Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

RTTTL - Ringtone Player


  • Please log in to reply
3 replies to this topic

#1 zee

zee

    Advanced Member

  • Members
  • PipPipPip
  • 47 posts

Posted 15 April 2013 - 09:35 AM

Hi,

 

I am currently doing a project on ringtone player. This code we found on http://dev-bin.com/2...e-player-rtttl/ .. Hence we decided to try it out and we found an error in Program.cs. We try to solve it by refer to the reference on the link but it did not seem to work.

 

static Queue SongQueue = new Queue();

 

 

Error 1 The type or namespace name 'Queue' could not be found (are you missing a using directive or an assembly reference?) C:UsersL33532DesktopMidPresentationMidPresentationProgram.cs 18 16 MidPresentation
Error 2 The type or namespace name 'Queue' could not be found (are you missing a using directive or an assembly reference?) C:UsersL33532DesktopMidPresentationMidPresentationProgram.cs 18 38 MidPresentation
 
 
PS: Need your help as soon as possible because our deadline is in 2 more days. URGENTTTT!!!  :o  :unsure:  :wacko:
 
Thanx.. :)

Attached Files



#2 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 15 April 2013 - 09:56 AM

I think the Queue class is found within the the System.Collections namespace, so try changing from just new Queue() to new System.Collections.Queue() or probably better to simply add this statement in the beginning of Program.cs

 

using System.Collections; 

 

You might also want to look at this post also covering an RTTL player:

 

http://forums.netdui...sed-controller/



#3 zee

zee

    Advanced Member

  • Members
  • PipPipPip
  • 47 posts

Posted 16 April 2013 - 03:31 AM

I think the Queue class is found within the the System.Collections namespace, so try changing from just new Queue() to new System.Collections.Queue() or probably better to simply add this statement in the beginning of Program.cs

 

using System.Collections; 

 

You might also want to look at this post also covering an RTTL player:

 

http://forums.netdui...sed-controller/

 

Yes yes.. It works! Thank you Hanzibal  :D



#4 hanzibal

hanzibal

    Advanced Member

  • Members
  • PipPipPip
  • 1287 posts
  • LocationSweden

Posted 16 April 2013 - 06:18 AM

That's great news - good luck!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.