Issue in playing CD

everything about the current big update and the latest stable branch

Moderator: Moderator

skrzyp
Posts: 82
Joined: Thu Dec 14, 2006 8:17 am

Issue in playing CD

Postby skrzyp » Mon Jan 26, 2009 5:28 pm

I must change xine.cpp like here:

Code: Select all

int Xine::getpos(){return cur_time;};

std::string Xine::cd_track_path(int track_nr)
{
  std::ostringstream tmp;

  tmp << "cdda://dev/cdrom9/" << track_nr;

  return tmp.str();
}


to play CDDA. Can somebody add including patch to device from Config?

BTW, pauses between tracks and speeding up CD after playing them are still present

Thanks!

skrzyp
Posts: 82
Joined: Thu Dec 14, 2006 8:17 am

Re: Issue in playing CD

Postby skrzyp » Mon Jan 26, 2009 8:08 pm

Sorry, I read sources and I find that I must set in xine config path to cdrom

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: Issue in playing CD

Postby Uatschitchun » Mon Jan 26, 2009 8:11 pm

That's not straight-forward! Couldn't MMS' cdrom-settings be used therefor?
Lg
Roman

skrzyp
Posts: 82
Joined: Thu Dec 14, 2006 8:17 am

Re: Issue in playing CD and two this same options in menu

Postby skrzyp » Mon Jan 26, 2009 8:39 pm

Now I check with changed xine config and this don't work for me.

Another thing, I found that in second menu of EPG Timers are two this same options "Toggle timer"

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Re: Issue in playing CD

Postby Uatschitchun » Tue Jan 27, 2009 1:57 pm

Pls report in bug-db
Lg

Roman

lorenzodes
master
Posts: 772
Joined: Sun Mar 11, 2007 4:50 pm
Location: move.l 4.w,a6

Re: Issue in playing CD

Postby lorenzodes » Tue Jan 27, 2009 2:11 pm

Uatschitchun wrote:That's not straight-forward! Couldn't MMS' cdrom-settings be used therefor?


It could ant it will.

Just give me the time to get home and cook a patch :)

Edit:

Ok, I don't even remember my own code. Xine audio already uses the CD device set in Config.
"I’m not frightened of dying, anytime will do, I don’t mind. Why should I be frightened of dying? There’s no reason for it, you gotta go sometime"

skrzyp
Posts: 82
Joined: Thu Dec 14, 2006 8:17 am

Re: Issue in playing CD

Postby skrzyp » Wed Jan 28, 2009 9:38 am

So why I must change source like in first post? Withot that CD don't play anything :(

lorenzodes
master
Posts: 772
Joined: Sun Mar 11, 2007 4:50 pm
Location: move.l 4.w,a6

Re: Issue in playing CD

Postby lorenzodes » Wed Jan 28, 2009 9:45 am

skrzyp wrote:So why I must change source like in first post? Withot that CD don't play anything :(



Well... do you have 2 CD/DVD drives? Can you please post the mms/Config file?
"I’m not frightened of dying, anytime will do, I don’t mind. Why should I be frightened of dying? There’s no reason for it, you gotta go sometime"

skrzyp
Posts: 82
Joined: Thu Dec 14, 2006 8:17 am

Re: Issue in playing CD

Postby skrzyp » Wed Jan 28, 2009 10:08 am

No, I have only one. Here is my config

Code: Select all

version = 27

convert = true
convert_locale = ISO-8859-2

cdrom = /dev/cdrom9, /mnt/cdrom/
cdrom_name = /dev/cdrom9, dvd device

show_quit = true

shutdown_script = poweroff

busy_indicator = true

jump = 10

idle_time = 1

debug_level = 3

# Show media dependant options in startmenu?
#
media = true

autostart = Movie:1
openclose = true
eject_path = /usr/bin/eject
eject_closeopts = -t
eject_openopts =


first_dev_name = Default
first_dev_digital = true
first_dev_output = alsa
first_dev_path = /dev/dsp1

#second_dev_name = Default
#second_dev_digital = true
#second_dev_output = oss
#second_dev_path = /dev/dsp1

#third_dev_name =
#third_dev_digital =
#third_dev_channels =
#third_dev_output =
#third_dev_path =

filetypes_p = png, png
filetypes_p = jpg, jpg
filetypes_p = jpeg, jpg
filetypes_p = gif, gif
filetypes_p = tiff, tiff
filetypes_p = bmp, bmp

outdev = sdl

blur = false
image_cache = 100
temp_image_loc = /var/cache/mms
fullscreen = true
cursor = true
h_res = 800
v_res = 600

#alternative_h_res = 800
#alternative_v_res = 480

blanktime = 60
blankopacity = 160

blankcolor_r = 0
blankcolor_g = 0
blankcolor_b = 0

input = lirc

lorenzodes
master
Posts: 772
Joined: Sun Mar 11, 2007 4:50 pm
Location: move.l 4.w,a6

Re: Issue in playing CD

Postby lorenzodes » Wed Jan 28, 2009 10:24 am

Please, apply the following:


Code: Select all

=== modified file 'plugins/feature/audio/players/xine/xine.cpp'
--- plugins/feature/audio/players/xine/xine.cpp 2009-01-18 16:29:42 +0000
+++ plugins/feature/audio/players/xine/xine.cpp 2009-01-28 10:22:32 +0000
@@ -101,6 +101,8 @@
     std::string str = S_Cd::get_instance()->get_device();
     config.str_value =  const_cast<char*>(str.c_str());
     xine_config_update_entry(xine, &config);
+    xine_config_lookup_entry(xine, "input.cdda_device", &config);
+    fprintf(stderr, "\n\n\n CD device %s -> %s\n\n\n", str.c_str(), config.str_value);
   }

   /* Disable CDDB, we have our own CDDB library  */
@@ -114,7 +116,6 @@
   if (stream == NULL){
     xine_close_audio_driver(xine, ao_port);
     ao_port = NULL;
-
     return false;
   }



At startup, if everything is fine, it should print something like this:

CD device /dev/cdrom9 -> /dev/cdrom9

Then report back please :)
"I’m not frightened of dying, anytime will do, I don’t mind. Why should I be frightened of dying? There’s no reason for it, you gotta go sometime"

skrzyp
Posts: 82
Joined: Thu Dec 14, 2006 8:17 am

Re: Issue in playing CD

Postby skrzyp » Wed Jan 28, 2009 10:34 am

yes, I get:

Code: Select all

 CD device /dev/cdrom9 -> /dev/cdrom9

lorenzodes
master
Posts: 772
Joined: Sun Mar 11, 2007 4:50 pm
Location: move.l 4.w,a6

Re: Issue in playing CD

Postby lorenzodes » Wed Jan 28, 2009 10:44 am

skrzyp wrote:yes, I get:

Code: Select all

 CD device /dev/cdrom9 -> /dev/cdrom9


Then xine should work. I will code a workaround for you later today.
"I’m not frightened of dying, anytime will do, I don’t mind. Why should I be frightened of dying? There’s no reason for it, you gotta go sometime"

lorenzodes
master
Posts: 772
Joined: Sun Mar 11, 2007 4:50 pm
Location: move.l 4.w,a6

Re: Issue in playing CD

Postby lorenzodes » Wed Jan 28, 2009 10:40 pm

Well, I tested the current code and everything seems fine.

See if the attached patch fixes for you. If it does, I might commit it, it allows cd device hot swapping.
"I’m not frightened of dying, anytime will do, I don’t mind. Why should I be frightened of dying? There’s no reason for it, you gotta go sometime"

skrzyp
Posts: 82
Joined: Thu Dec 14, 2006 8:17 am

Re: Issue in playing CD

Postby skrzyp » Thu Jan 29, 2009 5:47 am

After apply this patch all works ok.

Big thanks!


Return to “1.1.x”

Who is online

Users browsing this forum: No registered users and 2 guests