Ndsp minimal example

Discussion in '3DS - Homebrew Development and Emulators' started by elhobbs, Dec 15, 2015.

  1. elhobbs
    OP

    elhobbs GBAtemp Advanced Fan

    Member
    807
    296
    Jul 28, 2008
    United States
    does anyone have an ndsp minimal example that they would be willing to share or provide a link?
     
  2. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    3,127
    3,271
    Nov 24, 2014
    Italy
    Bologna
  3. elhobbs
    OP

    elhobbs GBAtemp Advanced Fan

    Member
    807
    296
    Jul 28, 2008
    United States
  4. DiscostewSM

    DiscostewSM GBAtemp Guru

    Member
    5,036
    2,663
    Feb 10, 2009
    United States
    Sacramento, California
    I know this is almost a month old, but just wanted to comment that calculating the number of samples from the dataSize is missing the number of channels the audio contains. Thought looping wasn't implemented yet when playing a 1-minute audio file (as there was silence at the end), but it turns out that not taking into account the channel count (in my case, my file was 2-channel) resulted in setting double the samples than there really was.