From f4486970399b149d7352dd758a95cccf13b91ae0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 4 Jan 2011 14:41:07 +0000 Subject: [PATCH] add warning about configuration variable types to session_configuration_vars.h as well git-svn-id: svn://localhost/ardour2/branches/3.0@8433 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/session_configuration_vars.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libs/ardour/ardour/session_configuration_vars.h b/libs/ardour/ardour/session_configuration_vars.h index 687932da73..336e694e6a 100644 --- a/libs/ardour/ardour/session_configuration_vars.h +++ b/libs/ardour/ardour/session_configuration_vars.h @@ -17,6 +17,14 @@ */ +/***************************************************** + DO NOT USE uint8_t or any other type that resolves + to a single char, because the value will be + stored incorrectly when serialized. Use int32_t + instead and ensure that code correctly limits + the value of the variable. +*****************************************************/ + CONFIG_VARIABLE (CrossfadeModel, xfade_model, "xfade-model", FullCrossfade) CONFIG_VARIABLE (bool, auto_xfade, "auto-xfade", true) CONFIG_VARIABLE (float, short_xfade_seconds, "short-xfade-seconds", 0.015) -- 2.30.2