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 (26, 36, 38, 70, 80, 90) for calculating the excitation signal, called first means (26, 36, 38, 70, 80, 90), the first means calculating the excitation signal at each moment; characterized in that the device comprises means (24, 25) for calculating a first dynamic value (A ref), called second means (24, 25), the first dynamic value (A ref) being a desired dynamic value (A ref) of the diaphragm of the loudspeaker, the second means (24, 25) 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 (24, 25) being upstream of the first means (26, 36, 38, 70, 80, 90), 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 (26, 36, 38, 70, 80, 90) 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 (26, 36, 38, 70, 80, 90) for calculating the excitation signal, called first means (26, 36, 38, 70, 80, 90), the first means calculating the excitation signal at each moment; characterized in that the device comprises means (24, 25) for calculating a first dynamic value (A ref), called second means (24, 25), the first dynamic value (A ref) being a desired dynamic value (A ref) of the diaphragm of the loudspeaker, the second means (24, 25) 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 (24, 25) being upstream of the first means (26, 36, 38, 70, 80, 90), 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 (26, 36, 38, 70, 80, 90) is able to calculate the excitation signal based on the first dynamic value (A ref).