search for: driver_id

Displaying 12 results from an estimated 12 matches for "driver_id".

2012 Aug 01
2
'redirect_to' taking infinite loop.
Hi, The following controller method taking me into infinite loop. Once the update action completes I want to reload the ''index'' page. May I know why it is going into infinite loop? def update Device.find_by_id( params[:device_id] ).driver = ( params[:driver_id] == 0 ) ? nil : Driver.find_by_id( params[:driver_id] ) redirect_to :action => :index, :tab => ''limo'' end Thanks, Ajit -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: T...
2001 Jan 02
0
ogg123: close_dsp_on_suspend and next_on_SIGUSR1 patches submission
...evices *current; + + /* Open all of the devices */ + bits = 16; + rate = 44100; + channels = 2; + current = param.outdevices; + + if (param.quiet < 1) + fprintf(stderr, "Opening devices...\n"); + + while (current != NULL) { + ao_info_t *info = ao_get_driver_info(current->driver_id); + + if (param.quiet < 1) { + fprintf(stderr, "Device: %s\n", info->name); + fprintf(stderr, "Author: %s\n", info->author); + fprintf(stderr, "Comments: %s\n", info->comment); + } + + current->device = ao_open(current->dr...
2009 Jul 08
0
accepts_nested_attributes_for and has_one
...me => "Homer", :age => 40 => #<Driver id: 1, name: "Homer", age: 40, created_at: "2009-07-08 16:54:44", updated_at: "2009-07-08 16:54:44"> >> d.create_car :make => "Porshce", :model => "911" => #<Car id: 1, driver_id: 1, make: "Porshce", model: "911", created_at: "2009-07-08 16:55:26", updated_at: "2009-07-08 16:55:26"> >> d.new_record? => false >> d.car.new_record? => false >> d.car.id => 1 >> d.car.attributes => {"model"=...
2012 Apr 05
0
Warning message: Gamlss - Need help
...lem? Below is the code that I wrote: install.packages("gamlss") library(utils) library(MASS) library (gamlss) Data_Reduced = read.table(file.choose(), header=TRUE, sep="\t") model1<-gamlss(Events~ factor(Solo_Time) + factor(Fleet)+ Father_SS + Mother_SS + random(factor(Driver_ID)) + offset(logDuration), sigma.fo=~random(factor(Driver_ID)), data = na.omit(Data_Reduced), family=NBI, na.action = "na.omit") summary(model1) Thanks in advance. Best regards, Haneen -------------------------------------------------------------------------------------- Haneen Farah,...
2000 Dec 30
1
selecting driver for ao
...classes for so long :) It's a shame that C doesn't allow you to make parts of the driver structures private, so that you can simply give the user the driver list and be sure that they can't damage it :( Hmm, I think ao_get_driver_name(int idx) is unnecessary, as ao_get_driver_info(int driver_id) does what is needed. But for the user of the API, they can't be sure that 'driver_id' is actually an index. It's probably better to just document the fact that driver indices run from 0...driver_count and let the user use ao_get_driver_info(). ao_get_driver_count is still necessar...
2002 Nov 03
0
python bindings and ao lockup
...retval = thread.start_new_thread(self.play_as_thread, args) <p>def play_as_thread(self, song_file, output): print self.get_name() + " started" vf = ogg.vorbis.VorbisFile(song_file) print "Vorbis File Object Created" dev = ao.AudioDevice(ao.driver_id('esd')) print "Entering the While Loop to actually play song" while self.playing == TRUE: (buff, bytes, bit) = vf.read(4096) data = int(vf.time_tell()),int(vf.time_total(0)) output.append(data) if byte...
2003 Jan 16
1
Several problems with ogg123
...n esd_open_sound (host=0x0) at esdlib.c:627 #4 0x28409a49 in esd_play_stream (format=4129, rate=44100, host=0x0, name=0x28404da0 "libao output") at esdlib.c:738 #5 0x28404a6d in ao_plugin_open (device=0x806a7c0, format=0xbfafef34) at ao_esd.c:138 #6 0x280bb7bf in _open_device (driver_id=5, format=0xbfafef34, options=0x0, file=0x0) at audio_out.c:462 #7 0x280bba3f in ao_open_live (driver_id=5, format=0xbfafef34, options=0x0) at audio_out.c:583 #8 0x804b514 in audio_reopen_action (buf=0x8075000, arg=0x80c20d0) at callbacks.c:60 #9 0x804a43e in execute_actions (buf=0x...
2004 Oct 22
0
libao-0.8.5 patch
...le = fopen(fname, "r"); if (file != NULL) { fclose(file); errno = AO_EFILEEXISTS; @@ -645,7 +654,7 @@ } - file = fopen(filename, "w"); + file = fopen(fname, "w"); } @@ -757,6 +766,15 @@ return info_table; } +char *ao_file_extension(int driver_id) +{ + driver_list *driver; + + if ( (driver = _get_driver(driver_id)) ) + return (driver->functions->driver_info())->extension; + else + return NULL; +} /* -- Miscellaneous -- */ diff -ur libao-0.8.5/src/plugins/alsa/ao_alsa.c libao-0.8.5.new/src/plugins/alsa/ao_alsa.c --- libao-0.8...
2000 Aug 12
1
libao patch: Minor clean up / Byte-order proposal
.../audio_out.c 2000/08/13 00:30:01 @@ -109,10 +109,6 @@ -/* --- Device Table --- */ - - - /* --- Driver Functions --- */ /* This should have been set by the Makefile */ @@ -169,7 +165,6 @@ ao_functions_t *funcs; ao_internal_t *state; ao_device_t *device; - int dev_id; if (ao_check_driver_id(driver_id)) { @@ -209,37 +204,28 @@ char *copy; char *value_ptr; char *colon; - ao_option_t *op; - int fail = 0; - - copy = strdup(op_str); - - colon = strchr(copy, ':'); - if (colon == NULL) - fail = 1; - else - { - value_ptr = colon + 1; - *colon = 0x00; // Null terminate the k...
2009 Oct 06
0
[ao] Two patches for libao2
...> > static driver_list *driver_head = NULL; > static ao_config config = { > - NULL /* default_driver */ > + NULL, /* default_driver */ > + NULL, /* options */ > }; > > static ao_info **info_table = NULL; > @@ -501,7 +502,10 @@ static ao_device* _open_device(int driver_id, ao_sample_format *format, > errno = AO_EFAIL; > return NULL; /* Couldn't init internal memory */ > } > - > + > + if (options == NULL) > + options = config.options; > + > /* Load options */ > while (options != NULL) { > if (!funcs->set_option...
2012 Mar 25
2
avoiding for loops
I have data that looks like this: > df1 group id 1 red A 2 red B 3 red C 4 blue D 5 blue E 6 blue F I want a list of the groups containing vectors with the ids. I am avoiding subset(), as it is only recommended for interactive use. Here's what I have so far: df1 <- data.frame(group=c("red", "red", "red", "blue",
2006 Jul 26
5
linux-2.6-xen.hg
Hi, Is the http://xenbits.xensource.com/linux-2.6-xen.hg tree still being updated? if not, what''s the preferred Linux tree to track that has all of the Xen bits? Thanks, Muli _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel