CD Playback problem in custom interface module

macOS specific usage questions
tomleonard
Blank Cone
Blank Cone
Posts: 30
Joined: 21 Feb 2004 04:16
Location: Kona, Hawaii, US
Contact:

CD Playback problem in custom interface module

Postby tomleonard » 22 May 2010 05:26

Aloha,

We are porting a custom interface module to VLC 1.0.5 on OS/X 10.6, and are having trouble figuring out how to make CD playback of an individual track, work.

The request we made was to play "cdda:///dev/rdisk1", having set the "cdda-track" global variable to the desired track number. We get an error:

"Cant open the MRL 'cdda:///dev/rdisk1'. Check log for details."

Could you please point us to the code in the macosx interface that performs this task. What we are really looking for is the code that manages the behavior when the user double-clicks on a CD track in the playlist.

Thanks

Tom

Our code:

Code: Select all

void VLCPtr::PlayCD(const wxString &idName, wxUint32 trackNum, wxInt32 timeout_ms) { // ___ Make sure nothing else is playing WaitStop(timeout_ms); // add the track number variable if (var_Type(m_pPlayList, "cdda-track") == 0) var_Create(m_pPlayList, "cdda-track", VLC_VAR_INTEGER); var_SetInteger(m_pPlayList, "cdda-track", trackNum); // ___ Play it #ifdef __VLC_0_8_6c__ playlist_LockClear(m_pPlayList); playlist_Add(m_pPlayList, idName.c_str(), NULL, PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END); #else playlist_Clear(m_pPlayList, false); playlist_Add(m_pPlayList, idName.utf8_str(), NULL, PLAYLIST_APPEND | PLAYLIST_GO, PLAYLIST_END, true, false); #endif // this shouldn't be necessary if PLAYLIST_GO flag is set //playlist_Play(m_pPlayList); playlist_Next(m_pPlayList); }

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: CD Playback problem in custom interface module

Postby Jean-Baptiste Kempf » 23 May 2010 12:22

Please send the log.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

tomleonard
Blank Cone
Blank Cone
Posts: 30
Joined: 21 Feb 2004 04:16
Location: Kona, Hawaii, US
Contact:

Re: CD Playback problem in custom interface module

Postby tomleonard » 24 May 2010 01:39

Thanks JB.

Found it from the log. Had an extra backslash following the device string.

Tom

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: CD Playback problem in custom interface module

Postby Jean-Baptiste Kempf » 25 May 2010 11:40

cool :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests