Si je double la taille du buffer, y'a plus de problème.
La notion de frame est définie comme :
frame
A sample is a single value that describes the amplitude of the audio signal at a single point in time, on a single channel. When we talk about working with digital audio, we often want to talk about the data that represents all channels at a single point in time. This is a collection of samples, one per channel, and is generally called a "frame". When we talk about the passage of time in terms of frames, its roughly equivalent to what people when they measure in terms of samples, but is more accurate; more importantly, when we're talking about the amount of data needed to represent all the channels at a point in time, its the only unit that makes sense. Almost every ALSA Audio API function uses frames as its unit of measurement for data quantities.
Donc dans mon cas, une frame contiendrait 2 samples de 16 bits chacun. Il me faudrait donc 32 bits par frame. Et la taille de "short" est de 16 bits avec mon petit gcc.
[^] # Re: valgrind ou electric fence
Posté par berti . En réponse au message incompréhensible - utilisation d'ALSA. Évalué à 3.
Si je double la taille du buffer, y'a plus de problème.
La notion de frame est définie comme :
frame
A sample is a single value that describes the amplitude of the audio signal at a single point in time, on a single channel. When we talk about working with digital audio, we often want to talk about the data that represents all channels at a single point in time. This is a collection of samples, one per channel, and is generally called a "frame". When we talk about the passage of time in terms of frames, its roughly equivalent to what people when they measure in terms of samples, but is more accurate; more importantly, when we're talking about the amount of data needed to represent all the channels at a point in time, its the only unit that makes sense. Almost every ALSA Audio API function uses frames as its unit of measurement for data quantities.
Donc dans mon cas, une frame contiendrait 2 samples de 16 bits chacun. Il me faudrait donc 32 bits par frame. Et la taille de "short" est de 16 bits avec mon petit gcc.
Merci pour votre aide.