search for: object_

Displaying 7 results from an estimated 7 matches for "object_".

Did you mean: objects
2004 Sep 10
1
mistake in FLAC++ metadata interface?
...why is this? To get the mumber of indicies in a track I need to use: cuesheet->get_track(i).get_track()->num_indices; ie. retrieve the C struct and get it from there. Is this a mistake in include/FLAC++/metadata.h ? ie should line 609 be: inline FLAC__byte get_num_indices() const { return object_->num_indices; } rather than: inline bool get_num_indices() const { return object_->num_indices; } ? thanks, Dave -- David Collett <jg@webone.com.au>
2010 Oct 20
1
is get() really what I want here?
# Let's say I have 5 objects, object_1, object_2, etc. for (i in 1:5) { assign(paste("object_",i, sep=""), i+500) } # Now, for whatever reason, I don't know the names of the objects I've created, but I want to operate on them. list<-ls(pattern="^obj") #Is get best? for (l in list) { ca...
2004 Sep 10
3
reading vorbis comments with FLAC++?
...om the file. A while back, I was popen()ing to metaflac, because I didn't want to mess with libFLAC. But now, it's the weekend, so I can mess around with this. Here's the code in question: bool getflac (struct Song* flac, const char* path) { FLAC__StreamMetadata *md = FLAC__metadata_object_new (FLAC__METADATA_TYPE_STREAMINFO); if (FLAC__metadata_get_streaminfo(path, md)) { unsigned nc = 0, i; FLAC::Metadata::VorbisComment vc (md); nc = vc.get_num_comments(); for (i = 0; i <= nc; i++) { FLAC::Metadata::VorbisComment::Entry e; e = vc.get_comment...
2006 Feb 23
7
How to set a relationship with a value from a selection list
I realize this is probably a very basic problem but I''m developing my first rails app and running into this problem. I''m trying to write a photoblog application. I have a photo table and an album table. Photo has a to-one relationship to Album. Photo.album_id => Album.id In my view for photo I have a selection list that''s populated with all the available albums.
2004 Sep 10
0
reading vorbis comments with FLAC++?
...the file. > > A while back, I was popen()ing to metaflac, because I didn't want to > mess with libFLAC. But now, it's the weekend, so I can mess around > with > this. Here's the code in question: ... > When I run this code, I get a SEGV during get_comment because > object_->data.vorbis_comment.comments is junk. Must I initialize it > somewhere? Note that vc.get_num_comments returns 14, which I imagine > is > a correct number. The documentation isn't overly clear about how this > works > and it would be cooler if some basic examples could be prov...
2004 Sep 10
2
usage of C++ StreamMetadata interface
Josh Coalson wrote: > [...] > why do you need one? all the fields are available though method > calls. just an example: I created an object of the type "FLAC::Metadata::VorbisComment". How will this find it's way to "FLAC::Stream::Encoder.set_metadata()" ??? Thomas
2004 Oct 29
0
(PR#7320) Internal function isUME() in findGeneric() is
...possible from the function itself. UseMethod() clearly tells you less than UseMethod("coef"). More practically, it's not always clear what "the name of the calling function" is, or that such a name has anything to do with the computation. It's the function _as an object_ that should determine what happens. There's nothing in the language that says you shouldn't make a vector of function objects, (f[1] <- coef; f[2] <- resid, etc. ) and then call (f[i])(myModel). In S3 methods, the generic function is just a plain "function" object, so...