Forum: C++ 14 Days Ago |
| Replies: 6 Views: 166 |
Forum: C++ 16 Days Ago |
| Replies: 6 Views: 166 |
Forum: C++ 16 Days Ago |
| Replies: 6 Views: 166 How to make an integer constant Hello everyone!
I am stuck on a strange problem -
code -
const int buf_size = ((aFormatCtx->bit_rate)*2);
for (;;)
{
static int16_t... |
Forum: C++ 16 Days Ago |
| Replies: 7 Views: 215 |
Forum: C++ Jun 4th, 2008 |
| Replies: 0 Views: 98 pausing audio playback 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... |
Forum: C++ Jun 3rd, 2008 |
| Replies: 4 Views: 282 |
Forum: C++ Jun 3rd, 2008 |
| Replies: 4 Views: 282 Re: access class members through pthread Well, after some thinking I put the "this" pointer into function argument, so it passes the current class to the thread function, like so -
if (pthread_create( &playThread, NULL,... |
Forum: C++ Jun 3rd, 2008 |
| Replies: 4 Views: 282 access class members through pthread 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... |
Forum: C++ May 27th, 2008 |
| Replies: 1 Views: 175 |
Forum: C++ May 26th, 2008 |
| Replies: 1 Views: 175 playback of decoded audio at normal speed 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... |
Forum: C++ Apr 22nd, 2008 |
| Replies: 3 Views: 590 |
Forum: C++ Apr 22nd, 2008 |
| Replies: 3 Views: 590 |
Forum: C++ Apr 22nd, 2008 |
| Replies: 3 Views: 590 Return 2-dimensional vector array from function 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... |
Forum: MySQL Mar 27th, 2008 |
| Replies: 4 Views: 483 |
Forum: MySQL Mar 26th, 2008 |
| Replies: 4 Views: 483 |
Forum: MySQL Mar 26th, 2008 |
| Replies: 4 Views: 483 sql "insert into" question 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... |
Forum: C++ Mar 23rd, 2008 |
| Replies: 2 Views: 251 |
Forum: C++ Mar 23rd, 2008 |
| Replies: 2 Views: 251 strange behavior in simple number addition! Hello everyone!
I am writing a function to multiply two matricies together. I have written a simple algorithm for a matrix 3x3 -
void multiply()
{
int a[3][3], b[3][3], c[3][3], i, j , p, val =... |
Forum: C++ Feb 24th, 2008 |
| Replies: 8 Views: 422 Re: What's the correct order of learning C++ ? Well, I guess you could write your own little program, like tetris or something using classes and functions! From my experience, the best combination is reading books and then doing examples that... |
Forum: C++ Feb 13th, 2008 |
| Replies: 5 Views: 1,000 |
Forum: C++ Feb 13th, 2008 |
| Replies: 5 Views: 1,000 |
Forum: C++ Feb 13th, 2008 |
| Replies: 5 Views: 1,000 how to insert variables into string with % sign? Hello everyone!
I have seen some code where some variable gets inserted into string throught the % sign, like so -
("insert into songs values (%Q ,%d, %d, %Q, %Q, %Q, ... ", someInt, someChar,... |
Forum: C++ Feb 6th, 2008 |
| Replies: 4 Views: 261 Re: confused about clarification on class objects Thanks for the explanation. Well, it is a database project, so as soon as MyFrame loads it needs to create the library class which contains functions for accessing the data from the database. So it... |
Forum: C++ Feb 5th, 2008 |
| Replies: 4 Views: 261 |
Forum: C++ Feb 5th, 2008 |
| Replies: 4 Views: 261 confused about clarification on class objects 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... |
Forum: C++ Jan 31st, 2008 |
| Replies: 7 Views: 940 |
Forum: C++ Jan 31st, 2008 |
| Replies: 7 Views: 940 Re: linux C++ include file error but say the path in my case would be
"home/linux0id/.eclipse/workspace/database/db/sqlite3.h"
surely it would not work on anyone elses machine unless they happen to have the same filepath? Or am I... |
Forum: C++ Jan 31st, 2008 |
| Replies: 7 Views: 940 Re: linux C++ include file error I forgot to mention that I have tried that and, yes it does work. But is there a better way other than giving it a full path, say that if I wanted to pack this project later on so that others can... |
Forum: C++ Jan 31st, 2008 |
| Replies: 7 Views: 940 linux C++ include file error 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... |
Forum: Assembly Jul 23rd, 2007 |
| Replies: 10 Views: 2,904 |
Forum: Assembly Jul 22nd, 2007 |
| Replies: 10 Views: 2,904 |
Forum: Assembly Jul 22nd, 2007 |
| Replies: 10 Views: 2,904 |
Forum: Assembly Jul 22nd, 2007 |
| Replies: 10 Views: 2,904 |