As described above, regardless of whether a drug is acidic or basic, the pH of the system can be adjusted at the time of drug dissolution, e.g., by incorporating a buffering agent such as an organic acid or a basic substance into one or more drug-containing layers.