search for: set_filename

Displaying 5 results from an estimated 5 matches for "set_filename".

Did you mean: get_filename
2005 Jan 02
1
Difficulties to get decoder to work
...cation to make use of flac files. However, I have difficulties to get the file-decoder to run in C++. What I do in my derived decoder class is basically: - create an instance of FLAC::Decoder::File, calling also the bsae class c'tor - set_metadata_respond( FLAC__METADATA_TYPE_STREAMINFO ), set_filename() - process_until_end_of_metadata() - repeatedly call process_single() However, none of my callbacks is actually called during the process_* calls. Instead, after the call to process metadata, the status of the stream decoder is FLAC__STREAM_DECODER_END_OF_STREAM. The same problem if I skip the...
2004 Sep 10
2
Using libFLAC++
...ns (meta,error, and write_callback). However, when I do the following, it prints 7, which appears to be FLAC__FILE_DECODER_INVALID_CALLBACK, meaning I haven't set up one of the callbacks that I need to. bool FlacDecoder::play(const char *filename) { FLAC__FileDecoderState fstate; set_filename(filename); fstate = FLAC__file_decoder_init(decoder_); cout << fstate << endl; return true; } Now, I thought the main difference between libFLAC and libFLAC++ was that in c++ you didn't have to manually set the callbacks, just inherit and they would be set for you....
2004 Sep 10
0
Using libFLAC++
...gt; However, when I do the following, it prints 7, which appears to be > FLAC__FILE_DECODER_INVALID_CALLBACK, meaning I haven't set up one of the > callbacks that I need to. > > bool FlacDecoder::play(const char *filename) > { > FLAC__FileDecoderState fstate; > set_filename(filename); > > fstate = FLAC__file_decoder_init(decoder_); This is wrong. It should be: fstate = init(); > cout << fstate << endl; > > return true; > } > [...] -- Miroslav Lichvar
2004 Nov 02
1
Basic Encoder Help
...the compression ratio is very small - the main example being a 60MB file compressing to 54MB, i guess there's an option i've missed, but i cannot track it down. I was hoping someone could point it out for me: FLAC::Encoder::File flac; void setup() { FLAC__FileEncoderState state; flac.set_filename(output_filename.c_str()); flac.set_channels (2); flac.set_bits_per_sample (16); flac.set_sample_rate (44100); flac.set_do_exhaustive_model_search(false); flac.set_do_escape_coding(false); flac.set_do_mid_side_stereo(true); flac.set_loose_mid_side_stereo(false); flac.set_qlp_coeff_precision(...
2007 Mar 28
0
[925] branches/wxruby2/wxwidgets_282/doc/textile/filedialog.txtl: Improvements to doc from wxWidgets 2.8
...ialog_getstyle </del><span class="cx"> * "FileDialog#get_wildcard":#FileDialog_getwildcard </span><span class="cx"> * "FileDialog#set_directory":#FileDialog_setdirectory </span><span class="cx"> * "FileDialog#set_filename":#FileDialog_setfilename </span><span class="cx"> * "FileDialog#set_filter_index":#FileDialog_setfilterindex </span><span class="cx"> * "FileDialog#set_message":#FileDialog_setmessage </span><span class="cx">...