()
| 1132 | } |
| 1133 | |
| 1134 | func (sc *SoundContents) LoadFile() { |
| 1135 | |
| 1136 | fp := sc.Card.Properties.Get("filepath").AsString() |
| 1137 | |
| 1138 | if newRes := globals.Resources.Get(fp); sc.Resource != newRes { |
| 1139 | |
| 1140 | sc.Resource = newRes |
| 1141 | |
| 1142 | if sc.Sound != nil { |
| 1143 | sc.Sound.Pause() |
| 1144 | sc.Sound.Destroy() |
| 1145 | sc.Playing = false |
| 1146 | } |
| 1147 | sc.Sound = nil |
| 1148 | |
| 1149 | } |
| 1150 | |
| 1151 | } |
| 1152 | |
| 1153 | func (sc *SoundContents) LoadFileFrom(filepath string) { |
| 1154 |
no test coverage detected