| /*************************************************************************** | /*************************************************************************** | ||||
| * Copyright (C) 2005 to 2014 by Jonathan Duddington * | * Copyright (C) 2005 to 2014 by Jonathan Duddington * | ||||
| * email: [email protected] * | * email: [email protected] * | ||||
| * Copyright (C) 2013 by Reece H. Dunn * | |||||
| * Copyright (C) 2013-2015 by Reece H. Dunn * | |||||
| * * | * * | ||||
| * This program is free software; you can redistribute it and/or modify * | * This program is free software; you can redistribute it and/or modify * | ||||
| * it under the terms of the GNU General Public License as published by * | * it under the terms of the GNU General Public License as published by * | ||||
| if(stream.Ok() == FALSE) | if(stream.Ok() == FALSE) | ||||
| { | { | ||||
| error("Failed to open: '%s'",path); | error("Failed to open: '%s'",path); | ||||
| delete spectseq; | |||||
| return(0); | return(0); | ||||
| } | } | ||||
| spectseq->Load(stream); | spectseq->Load(stream); | ||||
| if(spectseq->frames == NULL) | if(spectseq->frames == NULL) | ||||
| { | { | ||||
| error("Bad vowel file, no frames: '%s'",path); | error("Bad vowel file, no frames: '%s'",path); | ||||
| delete spectseq; | |||||
| return(0); | return(0); | ||||
| } | } | ||||