can anybody tell me what represents the parameter “count” in the method: PlayPCMAudio(Microsoft.SPOT.Hardware.Cpu.AnalogOutputChannel channel, byte[] data, int offset, int count, int dataRate) ?
In the description it says: Size of playback sample.
Is it the count of the wave data in Bytes without the header-bytes (this is the right answer in my opinion) , or the size of the complete wave-file with header-info included or is it something very different?
Both methods are working. Maybe the header-bytes are not hearable in the playback, if they are included.
BTW: Is it possible to power the cerberus without the USB-board directly from a power-supply connected to socket 8? I would only want to use the usb-board for flashing data.
I want to power the board without the power-mudule by an external power supply.
So could i connect a power supply to gnd an +5v pin on socket 8 or is vcc or something else also needed for running the cerberus after having flashed it?
Ok, i’ve got 11kb of sound data in a wave-file with a sample rate of 22,05kHz. If I give it to the PlayPCMAudio-method I only get something like a klicking sound.
So there’s no exception or anything else thrown. What could be the problem?
Ok, then back to the primary problem
I’ve got two different wave-files.
Both have similar properties:
unsingned 8Bit PCM
8kHz sample rate
mono-signal
The method “PlayPCMAudio” only plays one of the files in the right way. The other file is only a clicking sound. I’ve also tried different sample rates with the same result.
Which specifications are required for the wave-file? The documentation provides no info about it and I don’t get any exception.
The data-array with the wave-byte is correct, same for the header. I’ve also tried to provide the method with the pure sound-data without the header but same result.