deference to a trial court’s determination of historical facts,- but review pure questions of law de novo. Alford v. State, 358 S.W.3d 647, 652 (Tex.Crim.App.2012). Likewise, we give almost total deference to a trial court’s resolution of mixed questions of law and fact if those questions turn on the credibility and demeanor of witnesses. Id. However, if-credibility and demeanor are-not. necessary to the resolution of a mixed question of law and fact, we review the question de novo. See id.; Young v. State, 283 S.W.3d 854, 873 (Tex.Crim.App.2009). This same deferential standard of review applies to a trial court’s, determination • of historical facts, -demeanor, .and credibility even when that determination- is based on a videotape recording. State v. Duran, 396. S.W.3d 563, 570 (Tex.Crim.App.2013). The trial court’s ruling will be upheld if it is reasonably supported by the record and is correct under any theory of law applicable to" the case. Ramos, 245 S.W.3d at 418.
Custodial Interrogation
The threshold issue is whether Allen’s interview amounted to a custodial interrogation. Miranda requires that the .accused be properly admonished of certain constitutional rights ip. order for his statements “stemming from custodial interrogation” to be admissible as evidence against him. See Miranda v. Arizona, 384 U.S. 436, 444, 86 S.Ct. 1602, 1612, 16 L.Ed.2d 694 (1966). Likewise, Article 38.22 provides that no oral statement' of an accused “made as a result of custodial interrogation” is admissible unless the accused is warned'of his rights during the-recording but before making the statement,-and the accused -knowingly, intelligently,' and voluntarily waives those rights. Tex.Code Crim.Proc.Ann. art. 38.22, §§ 2(a),. 3(a)(2). Article 38.22 specifically provides that -it does not preclude the admission of statements that do not stem from custodial interrogation. Id. at § 5.
Allen was not warned of his rights during the recorded questioning by Detective Carney, and he asserts he was in custody at that time. The State contends Allen was not in custody during the interview and the trial court did not err in overruling Allen’s objection to admission of the recording. The defendant bears the burden to prove a statement was the product óf a custodial interrogation.
Herrera v. State, 241 S.W.3d 520, 526 (Tex.Crim.App.2007).
“By custodial interrogation, we mean questioning initiated by law enforcement officers after a person has been taken into custody or otherwise deprived of his freedom of action in-any significant way.” Miranda, 384 U.S. at 444, 86 S.Ct. at 1612; see Bass v. State, 723 S.W.2d 687, 690-91 (Tex.CrimApp.1986) (“custodial interrogation” as used in Article 38.22 was intended to be construed consistently with its meaning under the Fifth Amendment of the United States Constitution).
To determine whether an individual is in custody, a court must first examine all of the circumstances surrounding the interrogation, but the ultimate inquiry is shnply whether there was; a. formal arrest or restraint on freedom of movement of the degree -associated with a formal arrest. Stansbury v. California, 511 U.S. 318, 322, 114 S.Ct. 1526, 1529, 128 L.Ed.2d 293 (1994); Dowthitt v. State, 931 S.W.2d 244, 254 (Tex.Crim.App.1996). This determination of custody “depends on the objective circumstances of the interrogation, mot on the subjective views harbored by either the interrogating officers. or the person being questioned.” Stansbury, 511 U.S. at 323, 114 S.Ct. at 1529. After the circumstances surrounding the interrogation are considered, the court must determine