Device for controlling a loudspeaker , the loudspeaker being an electromagnetic device able to convert an electrical signal into an acoustic signal, the loudspeaker being used in an enclosure, the control device comprising: - an input for an audio signal (S audio_ref ) to be reproduced; - an output for supplying an excitation signal for the loudspeaker , called excitation signal; - means for calculating the excitation signal, called first means , the first means calculating the excitation signal at each moment; characterized in that the device comprises means for calculating a first dynamic value (A ref ), called second means , the first dynamic value (A ref ) being a desired dynamic value (A ref ) of the diaphragm of the loudspeaker , the second means calculating the first dynamic value (A ref ) based on the audio signal (S audio_ref ) to be reproduced and the structure of the enclosure, the second means being upstream of the first means , the second means comprising a structural adaptation unit being able to provide, at each moment, the first dynamic value (A ref ) as a function of a value ( γ 0 ) obtained from the audio signal (S audio_ref ) to be reproduced and the structure of the enclosure, the structure of the enclosure being a structure chosen among: a structure of vented enclosure and a structure of passive radiator enclosure, the structural adaptation unit being able to apply a correction on the value ( γ 0 ) obtained from the audio signal (S audio_ref ), the correction being different from the identity, the correction taking into account second dynamic values (x o , v o ), the second dynamic values (x o , v o ) being structural values of the enclosure that are different from the only dynamic values relative to the diaphragm of the loudspeaker , the second dynamic values (x o , v o ) comprising a derivate of predetermined order of the position (x o ) of the air displaced by the enclosure, and in that the first means is able to calculate the excitation signal based on the first dynamic value (A ref ). - an input for an audio signal (S audio_ref ) to be reproduced; - an output for supplying an excitation signal for the loudspeaker , called excitation signal; - means for calculating the excitation signal, called first means , the first means calculating the excitation signal at each moment; characterized in that the device comprises means for calculating a first dynamic value (A ref ), called second means , the first dynamic value (A ref ) being a desired dynamic value (A ref ) of the diaphragm of the loudspeaker , the second means calculating the first dynamic value (A ref ) based on the audio signal (S audio_ref ) to be reproduced and the structure of the enclosure, the second means being upstream of the first means , the second means comprising a structural adaptation unit being able to provide, at each moment, the first dynamic value (A ref ) as a function of a value ( γ 0 ) obtained from the audio signal (S audio_ref ) to be reproduced and the structure of the enclosure, the structure of the enclosure being a structure chosen among: a structure of vented enclosure and a structure of passive radiator enclosure, the structural adaptation unit being able to apply a correction on the value ( γ 0 ) obtained from the audio signal (S audio_ref ), the correction being different from the identity, the correction taking into account second dynamic values (x o , v o ), the second dynamic values (x o , v o ) being structural values of the enclosure that are different from the only dynamic values relative to the diaphragm of the loudspeaker , the second dynamic values (x o , v o ) comprising a derivate of predetermined order of the position (x o ) of the air displaced by the enclosure, and in that the first means is able to calculate the excitation signal based on the first dynamic value (A ref ). <EOS>