A device configured to encode scene-based audio data, the device comprising: a memory configured to store scene-based audio data; and one or more processors configured to: perform spatial audio encoding with respect to the scene-based audio data to obtain a foreground audio signal and a corresponding spatial component, the spatial component defining spatial characteristics of the foreground audio signal; perform psychoacoustic audio encoding with respect to the foreground audio signal to obtain an encoded foreground audio signal; perform a shape and gain analysis with respect to the foreground audio signal to obtain a shape and a gain representative of the foreground audio signal; determine, when performing psychoacoustic audio encoding with respect to the foreground audio signal, a first bit allocation for the foreground audio signal; perform quantization with respect to the gain to obtain a coarse quantized gain and one or more fine quantized residuals; determine, based on the first bit allocation for the foreground audio signal, a second bit allocation for the spatial component, including determining, based on a number of bits allocated to the coarse quantized gain and each of the one or more fine quantized residuals, the second bit allocation; quantize, based on the second bit allocation for the spatial component, the spatial component to obtain a quantized spatial component; and specify, in a bitstream, the encoded foreground audio signal and the quantized spatial component. a memory configured to store scene-based audio data; and one or more processors configured to: perform spatial audio encoding with respect to the scene-based audio data to obtain a foreground audio signal and a corresponding spatial component, the spatial component defining spatial characteristics of the foreground audio signal; perform psychoacoustic audio encoding with respect to the foreground audio signal to obtain an encoded foreground audio signal; perform a shape and gain analysis with respect to the foreground audio signal to obtain a shape and a gain representative of the foreground audio signal; determine, when performing psychoacoustic audio encoding with respect to the foreground audio signal, a first bit allocation for the foreground audio signal; perform quantization with respect to the gain to obtain a coarse quantized gain and one or more fine quantized residuals; determine, based on the first bit allocation for the foreground audio signal, a second bit allocation for the spatial component, including determining, based on a number of bits allocated to the coarse quantized gain and each of the one or more fine quantized residuals, the second bit allocation; quantize, based on the second bit allocation for the spatial component, the spatial component to obtain a quantized spatial component; and specify, in a bitstream, the encoded foreground audio signal and the quantized spatial component. perform spatial audio encoding with respect to the scene-based audio data to obtain a foreground audio signal and a corresponding spatial component, the spatial component defining spatial characteristics of the foreground audio signal; perform psychoacoustic audio encoding with respect to the foreground audio signal to obtain an encoded foreground audio signal; perform a shape and gain analysis with respect to the foreground audio signal to obtain a shape and a gain representative of the foreground audio signal; determine, when performing psychoacoustic audio encoding with respect to the foreground audio signal, a first bit allocation for the foreground audio signal; perform quantization with respect to the gain to obtain a coarse quantized gain and one or more fine quantized residuals; determine, based on the first bit allocation for the foreground audio signal, a second bit allocation for the spatial component, including determining, based on a number of bits allocated to the coarse quantized gain and each of the one or more fine quantized residuals, the second bit allocation; quantize, based on the second bit allocation for the spatial component, the spatial component to obtain a quantized spatial component; and specify, in a bitstream, the encoded foreground audio signal and the quantized spatial component.