Hello Josh,
my lab has some problems with the HD HiFi module. It used to work fine but for the past few weeks it is not playing sounds as it should.
- - when playing at a high sampling rate (192kHz) it sounds as if there is a loop and there are pauses in between the playing of the sound, this gets somewhat better at lower sampling rates though.
- - in protocols or when directly interacting with the Hifi module, it seems as if there are extra sounds which have not been removed from the storage and are playing beside the wanted sound or shortly before/after. This happens especially right after a change from one sound to another
We suspect it might be a software problem, especially due to the extra sounds being played, but we are not sure ourselves how to fix this.
- - the sounds are often not playing for the full time specified (eg.: 1s or 2s)
- - Playing different sounds in each speaker doesn't work reliably in protocols, although one side is usually somewhat louder
- - there are always cracking noises while playing the sounds
We tried the Bpod developer and master versions, the Bpod firmware versions 22 and 23 and the Hifi firmware versions 1 and 3 and the problems still persist.
Do you have any suggestions what we can try to fix these issues?
I can send you recorded examples if needed but wasn’t able to upload them here.
Thank you
Jasper
Here is the code we used for directly interacting with the module:
% Connect to HiFi module
clear H;
H = BpodHiFi('COM4');
% Choose sampling frequency
SF = 192000; % hertz
% SF = 44100; % hertz
H.SamplingRate = SF;
% Display connection in command window
H.VerboseMode = 1;
% Create pure tone in only one speaker (nothing in the other)
tonefreq = 1000; % hertz
dur = 1; % second
waveform = [GenerateSineWave(SF, tonefreq, dur); zeros(1, SF*dur)];
% waveform = GenerateSineWave(SF, tonefreq, dur);
% Choose volume
H.DigitalAttenuation_dB = -20;
% Send the sound
H.load(1, waveform, 'LoopMode', 0);
H.push;
% Play the sound
H.play(1);
pause(dur+1);
H.stop;