Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~19.0K People Reached
Favorite Tags
Member Avatar for Roelof Wobben

Hello, I have a sort of blog about the live of my daugther. Im now trying to make it in Symphony cms but it won't work. What I need it a flexible cms where I can decide how many articles are on a page. So as example februari 2005 page …

Member Avatar for smith warnes
1
91
Member Avatar for STUDENT#101

I wish to create a program that will be a quiz game (multiple choice) questions I need to be able to display it and the options and allow the user to use the mouse to click to the option which he thinks is the correct answer. My answers will be …

Member Avatar for STUDENT#101
0
136
Member Avatar for linux0id

Hello everyone! I am new to C++, and still haven't got to grips with objects, inheritance etc. etc. Anyway, here's the question - [CODE]class mainFrame : public Gtk::Window { private: library *m_library; player *m_player; }[/CODE] How can member m_player, when finished playing a track, access m_library to select the next …

Member Avatar for linux0id
0
92
Member Avatar for linux0id

Hello everyone! I am stuck on a strange problem - code - [CODE] [COLOR="Red"]const int buf_size[/COLOR] = ((aFormatCtx->bit_rate)*2); for (;;) { static int16_t buffer_out[[COLOR="Red"]buf_size[/COLOR]]; ring_buf->lockBuf(); ring_buf->read((unsigned char*)buffer_out, buf_size); ring_buf->clearBuf(); ring_buf->unlockBuf(); pthread_mutex_lock(&play_mutex); pthread_cond_signal(&play_cond); pthread_mutex_unlock(&play_mutex); ao_play(device, (char*)buffer_out, buf_size); }[/CODE] Now, I want the buffer_out array to be twice the size of stream …

Member Avatar for linux0id
0
141
Member Avatar for CoolGamer48

What's the difference exactly between opening a file stream in the default text mode and opening it in binary mode? The cplusplus.com article on file i/o mentioned a few things, but I really didn't get the gist of it. Could someone explain it? Thanks.

Member Avatar for hacker9801
0
440
Member Avatar for linux0id

Hello everyone! I am writing a music playback program. I have got the playing of audio working using ffmpeg and libao. Now I need to implement the ability to pause the playback, and I have a few ideas - [LIST]Check the variable (ie. pause = true/false) [/LIST] [LIST] Pause the …

0
64
Member Avatar for linux0id

Hello everyone! I am using pthreads on Linux with C++ which spawns one thread and (tries to) play music. However, as soon as the program gets to the point where any function tries to use any member in the class, program seg-faults. Here - [ICODE]class audio { public: int play(char …

Member Avatar for linux0id
0
1K
Member Avatar for linux0id

Hello everyone! I am learning sound programming on Linux. In my app I am using ffmpeg to decode the audio, and then ALSA to pass it on to speakers. So far everything is fine - the packets are retrieved, stored in a queue. After that, the packets are read from …

Member Avatar for linux0id
0
120
Member Avatar for linux0id

Hello everyone! I have a function to get data from a database. I want to put it into matrix of some sort so that I can have something like a spreadsheet (multiple columns and rows, depending on data). It needs to be dynamic. Ok code so far - [CODE]//--------------------------------------------------------------- template …

Member Avatar for linux0id
0
107
Member Avatar for linux0id

Hello everyone! I am writing a music database, and I need to insert into album table the path to its cover. However, not every album has a cover in its directory, so I've made an algorithm that only gets the albumID that has a cover. My question is - how …

Member Avatar for linux0id
0
98
Member Avatar for linux0id

Hello everyone! I am writing a function to multiply two matricies together. I have written a simple algorithm for a matrix 3x3 - [CODE]void multiply() { int a[3][3], b[3][3], c[3][3], i, j , p, val = 0; a[0][0] = -1; a[0][1] = 0; a[0][2] = 1; a[1][0] = 5; a[1][1] …

Member Avatar for linux0id
0
81
Member Avatar for Google Spider

Hello, What I've learnt so far is in this order: Hello world>>data types>>conditional execution>>C-style arrays>>C-style strings>>loops>>functions>>structs>>classes I'm not very good at structs and classes and haven't tried any problems, just read it from the book. I find classes kinda difficult and often forget what I read yesterday:-/ Should I move …

Member Avatar for codeaa
0
157
Member Avatar for linux0id

Hello everyone! I have seen some code where some variable gets inserted into string throught the % sign, like so - [CODE]("insert into songs values (%Q ,%d, %d, %Q, %Q, %Q, ... ", someInt, someChar, someChar... )[/CODE] I have tried to look it up in google but I do not …

Member Avatar for linux0id
0
12K
Member Avatar for linux0id

Hello everyone! I am new to C++. I am learning GUI programming using gtkmm on linux. I have a frame class, and I have a library class (that writes data to sqlite) that belongs to that frame. How should I declare it - by pointer or reference? like - [CODE]class …

Member Avatar for linux0id
0
88
Member Avatar for linux0id

Hi everyone! I am new to C++, started not so long ago. I am writing a database program using sqlite3 and gtkmm (C++ bindings to GTK) GUI toolkit. I am using Eclipse for project building (managed make). In my project, I have two folders - 'db' and 'interface'. here is …

Member Avatar for linux0id
0
114
Member Avatar for linux0id

Hello everyone! Not so long ago I decided to learn assembly language. I have grasped the basics of it more or less, but there is one problem that I cannot solve (and find any help about). I wrote a program to output the sum of two integers that are entered …

Member Avatar for someb0dy
0
4K