aboutsummaryrefslogtreecommitdiff
path: root/sound/audiocd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/audiocd.cpp')
-rw-r--r--sound/audiocd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/audiocd.cpp b/sound/audiocd.cpp
index f2b243b843..2f3e68b229 100644
--- a/sound/audiocd.cpp
+++ b/sound/audiocd.cpp
@@ -132,7 +132,7 @@ int AudioCDManager::getCachedTrack(int track) {
file->open(track_name, g_engine->getGameDataPath());
if (file->isOpen()) {
- _track_info[current_index] = new MP3TrackInfo(file);
+ _track_info[current_index] = makeMP3TrackInfo(file);
if (_track_info[current_index]->error()) {
delete _track_info[current_index];
_track_info[current_index] = NULL;
@@ -147,7 +147,7 @@ int AudioCDManager::getCachedTrack(int track) {
file->open(track_name, g_engine->getGameDataPath());
if (file->isOpen()) {
- _track_info[current_index] = new VorbisTrackInfo(file);
+ _track_info[current_index] = makeVorbisTrackInfo(file);
if (_track_info[current_index]->error()) {
delete _track_info[current_index];
_track_info[current_index] = NULL;