Homebrew [Release] Alarm Clock

  • Thread starter 730
  • Start date
  • Views 25,320
  • 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
  • K3Nv2 @ K3Nv2:
    Lol 5GB for one episode
  • Psionic Roshambo @ Psionic Roshambo:
    Lol I can watch it free
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, from the shows website?
  • K3Nv2 @ K3Nv2:
    They should've just made it a movie at 50 minutes
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    No from Paramount Plus or whatever it is
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Psi now has access to every streaming and cable channel out
  • K3Nv2 @ K3Nv2:
    Eh I'd rather just download and delete is it already up on paramount?
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah it's on now
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, why are most new south park episodes half hour specials?
    +1
  • K3Nv2 @ K3Nv2:
    @Psionic Roshambo, let me get a Netflix account I've always been nice to you
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I made a honey pepper glazed turkey breast for dinner turned out pretty bomb
  • K3Nv2 @ K3Nv2:
    We can Netflix and chill
  • Xdqwerty @ Xdqwerty:
    Nvm not half hour, but hour long
  • Xdqwerty @ Xdqwerty:
    Normal south park episodes are already half hour
  • Psionic Roshambo @ Psionic Roshambo:
    Got 2 free Xumo boxes they work pretty good
  • K3Nv2 @ K3Nv2:
    I'm happy to get anything most series don't make it pass 6 seasons
  • Psionic Roshambo @ Psionic Roshambo:
    Except Stars and Encore those are being a bitch lol
  • K3Nv2 @ K3Nv2:
    I may consider that onn pro box finally a media box with type A ;O
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, cuz the companies don't want em to
  • K3Nv2 @ K3Nv2:
    No it's revenue and demand south park could argue has a bigger audience than family guy about the same
    +1
  • K3Nv2 @ K3Nv2:
    Family guy is worth 300mill south parks worth 1Bill according to the interwebs
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, probably cuz family guy is more disliked compared to south park
  • K3Nv2 @ K3Nv2:
    It just does the same formula south park can press buttons without going overboard
  • Xdqwerty @ Xdqwerty:
    And bc most of the family guy budget is spent on the voice actors rather than on the animation
  • K3Nv2 @ K3Nv2:
    Southpark could spend 30k on a animated dick and people would laugh at it
    +1
    K3Nv2 @ K3Nv2: Southpark could spend 30k on a animated dick and people would laugh at it +1