Skip to content

wav on 16 bit format. #10

Description

@geva-elettronica

I am trying to change to play, 16bit wav, which are more readily available.

I can not understand why crashes after the first buffer and stops forward.

void Audio_Handler (void){
  if (__SampleIndex < __NumberOfSamples - 1)  {
    analogWrite(A0, __WavSamples[__SampleIndex+=2]<<2);
    TC5->COUNT16.INTFLAG.bit.MC0 = 1;      // Clear the interrupt
  }  else  {
    __SampleIndex = 0;
    TC5->COUNT16.INTFLAG.bit.MC0 = 1;
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions