![]() |
2011-05-19
, 11:19
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#11
|
![]() |
2011-05-19
, 11:24
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#12
|
![]() |
2011-05-19
, 11:51
|
Posts: 701 |
Thanked: 585 times |
Joined on Sep 2010
@ London, England
|
#13
|
![]() |
2011-05-19
, 12:19
|
|
Posts: 870 |
Thanked: 133 times |
Joined on Aug 2010
|
#14
|
The Following User Says Thank You to AgogData For This Useful Post: | ||
![]() |
2011-05-19
, 12:20
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#15
|
I heard that Mozquitos don't like people who eat Marmite*, can't remember where I heard it, but it was fairly recently (last few months or so). I don't really know if it is true, but I'm a Marmite lover and I never get bitten by insects.
I have just done a search and found this. It might be the B vitamins in Marmite that has the repellent effect.
* For those who don't know, it is a savoury yeast extract spread typically used in sandwiches or toast.
The Following User Says Thank You to santiago For This Useful Post: | ||
![]() |
2011-05-19
, 12:24
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#16
|
Despite what retsaw is saying i just tested Mosquito's Hunter with no mosquito and :
1- When i press again on classic/extreme i can't pause, there is no stand by option by un-pressing cl./ext.
2- there is a down arrow on the title indicating its a drop menu but when i pressed it nothing happened
The Following User Says Thank You to santiago For This Useful Post: | ||
![]() |
2011-05-19
, 12:50
|
Posts: 1,086 |
Thanked: 2,964 times |
Joined on Jan 2010
|
#17
|
Despite what retsaw is saying i just tested Mosquito's Hunter with no mosquito and :
1- When i press again on classic/extreme i can't pause, there is no stand by option by un-pressing cl./ext.
in playClassicSound method
if selectedMosquito variable is not classic (ie. is either none or extreme){
set soundFile = start.wav
set selectedMosquito to classic
set button backgrounds to red/dark grey
}
else (ie. selectedMosquito variable is currently classic, so classic is currently running){
set selectedMosquito to 'none'
stop sound playing
change button background to dark grey color
}
![]() |
2011-05-19
, 13:01
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#18
|
Ah some good feedback!
At the moment it's just a simple toggle between the two, once those mosquitos start singing they won't stop until the app exits :P The pause functionality could be added quite simply though - santiago would you like to practise your coding?
On the button click you just need to check if that mosquito is currently selected and, if so, to stop playing the sound file and to change the button background to the dark colour.
You might want to introduce a new variable, similar to the new soundFile variable, that remembers if it's the classic, the extreme, or no mosquito currently selected. In each play sound method you'd check this new variable, eg
Something like that will enable your users to pause the sound by re-clicking on the button. Let me know if you try it and it doesn't work, we'll soon fix it
Im interested to hear the results of Nicholes experiment. Fortunately we don't have many mosquitos here so i can't test it myself. if only we could have an app to repel cold weather and rain
![]() |
2011-05-19
, 13:11
|
Posts: 1,086 |
Thanked: 2,964 times |
Joined on Jan 2010
|
#19
|
no. it's made to work in loop just becouse sounds are like of 0.30
sec lenght.. It's not a player, it has to execute the sound in loop, a pause button is not needed. When you want to stop it, you can close the app
The Following User Says Thank You to kojacker For This Useful Post: | ||
![]() |
2011-05-19
, 13:31
|
|
Posts: 518 |
Thanked: 334 times |
Joined on Mar 2010
@ italy
|
#20
|
Ok but you can easily have both looping and a pause ... a user might need take a break from all the mosquito noise but not want to close the appIf you get more user feedback asking for a pause functionality you might want to think about it again
Edit: oh you've changed your post a little.. yep when you exit the app it stops playing all sounds, it would be terrible if the mosquito sound continued to play in a loop long after the app had closed lol!I think what was suggested was a way to stop or pause the sound playing during when the app is open. It's something to think about
The Following User Says Thank You to santiago For This Useful Post: | ||