Homebrew [Release] Alarm Clock

  • Thread starter 730
  • Start date
  • Views 25,354
  • Replies 86
  • Likes 22

730

Professional Shitposter
OP
Member
Joined
Apr 2, 2015
Messages
485
Trophies
0
XP
628
Country
Argentina
Great! I will try it later!

So try to implement the possibility to switch clock colors.
(For example, at the moment there is set to white, try to implement something that change that white in red/blue/yellow etc etc for example.
I suggest not so definite colors but "shady" because it will results better I think :D

Another thing: try to put as alarm not only the file called "alarm" but it should be have a support of load any music file.
For example if I have 5 audio files on my SD I should select what I prefer and not only alarm

Anyway "as is" it is very minimalist and cool...maybe you can do two versions: one minimalist and one "rainbowed"

...So what should I do?
I had an alarm.wav, in the correct spot, like I said.

Now you can load any WAVs from an "alarms" folder, without requiring a specific filename, and there's also color switching for the big clock!
 

Rinnegatamante

Well-Known Member
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
Note: Apparently WAVs that are too big (>15-17 MB) won't load. This is probably a bug with lpp-3ds.

lpp-3ds have no bugs for WAVs file (On R2 just a little bug for OGG streaming looping but solved in latest nightly build upload you can found on GitHub).
You're probably not using streaming feature so you can't load files bigger then free RAM.
 

730

Professional Shitposter
OP
Member
Joined
Apr 2, 2015
Messages
485
Trophies
0
XP
628
Country
Argentina
lpp-3ds have no bugs for WAVs file (On R2 just a little bug for OGG streaming looping but solved in latest nightly build upload you can found on GitHub).
You're probably not using streaming feature so you can't load files bigger then free RAM.
I have a WAV 17MB big which locks up the 3DS when loaded, so I guess I'll enable streaming for WAVs. I haven't checked the latest nightly, will try that out.
When I tried enabling streaming on OGGs, only the first few seconds of the file were playing (looped), must be what you mentioned.

@Rinnegatamante Wait, I do have the latest nightly (18/09), so I think the problem here is me not knowing how to use streaming :P
Do I have to use the updateStream() function? And if so, when?
 
Last edited by 730,

Rinnegatamante

Well-Known Member
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
I have a WAV 17MB big which locks up the 3DS when loaded, so I guess I'll enable streaming for WAVs. I haven't checked the latest nightly, will try that out.
When I tried enabling streaming on OGGs, only the first few seconds of the file were playing (looped), must be what you mentioned.

@Rinnegatamante Wait, I do have the latest nightly (18/09), so I think the problem here is me not knowing how to use streaming :P
Do I have to use the updateStream() function? And if so, when?

Sound.updateStream() should be called in your main loop (or whenever you're assuming to have a sound reproduced with streaming.
 
  • Like
Reactions: 730

730

Professional Shitposter
OP
Member
Joined
Apr 2, 2015
Messages
485
Trophies
0
XP
628
Country
Argentina
I noticed another things in your code, it seems you use only one audiochannel for your files.
I suggest you to use a set of dual channels to enable support for stereo files.
Oh, it's those hex numbers? My knowledge isn't very advanced so yeah... Looking at the Sunshell code, should the last 2 parameters of Sound.play() be 0x08 and 0x09?
 

Rinnegatamante

Well-Known Member
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
Yeah I saw that, though it's not a very widely used format, mostly used on Mac/iPods right? OGGs seem like the way to go.

Vorbis audiocodec (used by OGG containers) is the best audiocodec in the world so yeah, anyone should use only these files. - https://en.wikipedia.org/wiki/Vorbis
 
  • Like
Reactions: 730

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • realtimesave @ realtimesave:
    @SylverReZ that guy seriously spent over 2 grand on that hot wheels pc?
    +1
  • RedColoredStars @ RedColoredStars:
    LTT is a noob
  • RedColoredStars @ RedColoredStars:
    Guy doesnt know wtf hes talking about half the time
  • realtimesave @ realtimesave:
    @SylverReZ that reminds me that my friend sells CRTs he gets cheap or free for hundreds of dollars. people are dumb
    +1
  • RedColoredStars @ RedColoredStars:
    And is incredibly annoying.
  • realtimesave @ realtimesave:
    man I just washed my shoes and they look exactly the same as before I washed them :|
  • realtimesave @ realtimesave:
    luckily they didn't fall apart
  • RedColoredStars @ RedColoredStars:
    Some CRTs are very much worth the price
  • RedColoredStars @ RedColoredStars:
    i used to go out to the recycling center every couple weeks and look at the crts and other electronics people would drop off. Usually screens were broken or severely scratched from being tossed around. Did find a good one here and there, but never anything like a 1080i widescreen crt.
  • RedColoredStars @ RedColoredStars:
    Or a good contition 40" Sony Trini that weighs 300 lbs. lol
  • RedColoredStars @ RedColoredStars:
    Literally 300 lbs. lolol
  • BigOnYa @ BigOnYa:
    I have a few of those boat anchors in my basement I tried giving away but no one wanted them, So anyone close to Columbus, Ohio area that wants them, (26", 2x 19") please come get, for free.
  • RedColoredStars @ RedColoredStars:
    Dont know anyone wants those smaller ones. Most are after larger sizes and the kinda top of the line models
  • RedColoredStars @ RedColoredStars:
    Motion handling and input lag on those things destroy plasmas, led, oled
  • realtimesave @ realtimesave:
    I had some really nice CRTs I should've kept
  • realtimesave @ realtimesave:
    now I have all lcd
  • realtimesave @ realtimesave:
    one in particular I regret getting rid of oh well :|
  • realtimesave @ realtimesave:
    the Sonys and stuff I don't care about
  • realtimesave @ realtimesave:
    and used LCD are hard to sell I can imagine.. not worth much
  • realtimesave @ realtimesave:
    @SylverReZ where do u lurk
  • a_username_that_isnt_cool @ a_username_that_isnt_cool:
    Is it piracy if it was released for free? Not in my opinion, but I also think it's not piracy if buying it isn't owning it, and it's not piracy if you can't buy it from the original creators anymore.
  • K3Nv2 @ K3Nv2:
    Free release can have loopholes where they still make money through ads
    Xdqwerty @ Xdqwerty: :sad: