Search found 65 matches

by eKid
Mon Jun 29, 2009 1:14 pm
Forum: DS Development
Topic: some questions around arm7
Replies: 6
Views: 2944

Re: some questions around arm7

What are you planning on doing? Are you sure the arm9 cannot handle the full load? Are you sure you 'really' need the arm7 to help out? It's not easy to make a system that uses both of the processors efficiently. The ARM7 processor can't even access mainram efficiently, there are huge waitstates whe...
by eKid
Fri Jun 26, 2009 7:30 pm
Forum: maxmod
Topic: stream sound[solved]
Replies: 26
Views: 69173

Re: streaming audio

Oh, no that's something unrelated to this. Are you sure your OGG decoding stuff is progressing through the file rather than just decoding the beginning over and over?

edit: (oops this was targetted for that other post)
by eKid
Fri Jun 26, 2009 7:05 pm
Forum: maxmod
Topic: stream sound[solved]
Replies: 26
Views: 69173

Re: streaming audio

Calling the update every frame is ideal.

Code: Select all

sys.samp_count = 0;
I'm not sure what this is...
by eKid
Fri Jun 26, 2009 6:47 pm
Forum: maxmod
Topic: stream sound[solved]
Replies: 26
Views: 69173

Re: streaming audio

buffer_length = 4096 should be fine.

Did you remember to call mmStreamUpdate periodically?
by eKid
Fri Jun 26, 2009 6:02 pm
Forum: maxmod
Topic: stream sound[solved]
Replies: 26
Views: 69173

Re: streaming audio

Err yeah, 2 channels = stereo, so in that case it would be more of something like this: mm_word on_stream_request( mm_word length, mm_addr dest, mm_stream_formats format ) { int filled = 0; s16 *target = (s16*)dest; while( length >= 1024 ) { length -= 1024; filled += 1024; Update_OGG_Stream( 2, vorb...
by eKid
Fri Jun 26, 2009 4:48 pm
Forum: maxmod
Topic: stream sound[solved]
Replies: 26
Views: 69173

Re: streaming audio

For a function like that I think something like this should work (expecting 16-bit mono data (2048 samples, 4096 bytes)) mm_word on_stream_request( mm_word length, mm_addr dest, mm_stream_formats format ) { int filled = 0; s16 *target = (s16*)dest; while( length >= 2048 ) { length -= 2048; filled +=...
by eKid
Fri Jun 26, 2009 2:06 pm
Forum: maxmod
Topic: stream sound[solved]
Replies: 26
Views: 69173

Re: streaming audio

When you call mmStreamUpdate, it gives you the number of samples that needs to be filled. Do you need to decode exactly 4k samples? If so, then you want to have a buffer size that is a bit larger than 4k, so you have enough room to decode into, plus enough room for some overhead and then the actual ...
by eKid
Wed Jun 24, 2009 5:33 am
Forum: DS Development
Topic: [solved] 4mb limit
Replies: 9
Views: 4924

Re: 4mb limit

I think the NitroFS stuff can put things into the .nds file, but I haven't ever used this kind of stuff.
by eKid
Mon May 25, 2009 8:45 am
Forum: maxmod
Topic: Adding/Removing files in a soundbank
Replies: 2
Views: 1835

Re: Adding/Removing files in a soundbank

Can I files received from wifi or FAT add to a soundbank (and later remove it) ? Format : u8* No. It's too much trouble to add files during runtime with the current API. how can I get the name or the number of channels of a mod ? You can't :). The number of channels is not stored in the internal mo...
by eKid
Mon May 25, 2009 8:40 am
Forum: maxmod
Topic: Looping samples, sample rates on DS, loading from EFS
Replies: 3
Views: 2487

Re: Looping samples, sample rates on DS, loading from EFS

1) mmutil supports wavs with loops in them, if you don't have a program that can set the loop point in a wav file (seems to be a rare feature) then you can put the wave file in a module instead and set the loop there (name/DOS filename of the sample in the module must be prefixed with # to export a ...