The internal format of an audio buffer might differ from the user specified format for rendering efficiency but the library will always return data in the requested format. This also means that it is possible to assign data with a specific format, then change the format settings and let the library do the conversion to the new format when requesting the sample data.