It seems that cue does not work right

Discuss Max, an open source CD audio extractor and audio converter.
Post Reply
Keeper
Posts: 2
Joined: Tue Aug 05, 2008 4:58 pm

It seems that cue does not work right

Post by Keeper » Tue Aug 05, 2008 5:21 pm

The cue listed bellow does not work right with Max, but works well on XP with foobar player and some other software.

With Max open dialog this cue does not right encode Performer and Title and does not list any tracks.

BTW, cue contains russian characters in UTF-8 (originally it was in CP1251, but converted with iconv).

PS: It could be helpful to attach cue file insted of paste cue text, but forum does not allows upload cue files.

Code: Select all

REM GENRE "Rock & Roll"
REM DATE 1996
REM DISCID 7A0B0609
REM COMMENT "ExactAudioCopy v0.95b4"
PERFORMER "Чиж & Co"
TITLE "Эрогенная Зона"
FILE "Чиж & Co - Эрогенная Зона.ape" WAVE
  TRACK 01 AUDIO
    TITLE "Фантом"
    PERFORMER "Чиж & Co"
    INDEX 00 00:00:00
    INDEX 01 00:00:03
  TRACK 02 AUDIO
    TITLE "Динамовский вальс"
    PERFORMER "Чиж & Co"
    INDEX 01 05:57:58
  TRACK 03 AUDIO
    TITLE "Снова поезд"
    PERFORMER "Чиж & Co"
    INDEX 00 08:55:36
    INDEX 01 08:58:33
  TRACK 04 AUDIO
    TITLE "Эрогеная зона"
    PERFORMER "Чиж & Co"
    INDEX 00 15:50:33
    INDEX 01 15:53:10
  TRACK 05 AUDIO
    TITLE "Russo matroso"
    PERFORMER "Чиж & Co"
    INDEX 00 20:21:46
    INDEX 01 20:22:73
  TRACK 06 AUDIO
    TITLE "То засада, то измена"
    PERFORMER "Чиж & Co"
    INDEX 01 25:10:35
  TRACK 07 AUDIO
    TITLE "Прекрасное воскресение"
    PERFORMER "Чиж & Co"
    INDEX 00 27:52:01
    INDEX 01 27:53:53
  TRACK 08 AUDIO
    TITLE "Вечная молодость"
    PERFORMER "Чиж & Co"
    INDEX 00 31:26:29
    INDEX 01 31:27:38
  TRACK 09 AUDIO
    TITLE "Лирическая"
    PERFORMER "Чиж & Co"
    INDEX 00 42:26:39
    INDEX 01 42:28:63

Keeper
Posts: 2
Joined: Tue Aug 05, 2008 4:58 pm

Re: It seems that cue does not work right

Post by Keeper » Wed Aug 06, 2008 7:44 pm

I really love open source! :)

I've fixed it for myself. It was easy to patch CueSheetDocument.ReadFromUrl() and relpace encoding:NSASCIIStringEncoding with encoding:NSUTF8StringEncoding and Max now works with UTF8 Encoding.

It is not public solution of course, but works for me. As soon as I understand, it is wise to select cue file encoding within open dialog solution and use selected encoding in code to decode cuetools parsing results.

Moreover, error reporting could be more informative when cue is incorrect.

After that Max works cool for me to recode ape to mp3. Unfortunately, importing to iTunes is not smooth (some file permission error messages that it seems does not affect to result), but finally all works.

Great job!

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests