User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
DaniWeb is a massive community of 373,872 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,013 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Showing results 1 to 33 of 33
Search took 0.01 seconds.
Posts Made By: linux0id
Forum: C++ 14 Days Ago
Replies: 6
Views: 166
Posted By linux0id
Re: How to make an integer constant

he... he...
That has worked. Thanks very much. I guess it is because the array was static that it didn't work.
Forum: C++ 16 Days Ago
Replies: 6
Views: 166
Posted By linux0id
Re: How to make an integer constant

Thanks for that, I did not know that! I'll try to figure something out!

Thank you.
Forum: C++ 16 Days Ago
Replies: 6
Views: 166
Posted By linux0id
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
Posted By linux0id
Re: Difference between binary and text file streams

from my experience you open up files like mp3's in binary, so that you can read any type of info (not just text) at precise position in files. Text mode is for reading/writing text.
Forum: C++ Jun 4th, 2008
Replies: 0
Views: 98
Posted By linux0id
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
Posted By linux0id
Forum: C++ Jun 3rd, 2008
Replies: 4
Views: 282
Posted By linux0id
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
Posted By linux0id
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
Posted By linux0id
Re: playback of decoded audio at normal speed

ok... lets put it another way -
how can I make a 1D array of decoded samples play at normal speed, and not as fast as possible? Anybody?
Forum: C++ May 26th, 2008
Replies: 1
Views: 175
Posted By linux0id
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
Posted By linux0id
Re: Return 2-dimensional vector array from function

I have managed to find a solution to this reading this guide - http://www.devx.com/tips/Tip/33488
Forum: C++ Apr 22nd, 2008
Replies: 3
Views: 590
Posted By linux0id
Re: Return 2-dimensional vector array from function

sorry I forgot to remove the library:: bit. I have it correct in my code (ie ... = m_library.runMatrix("..")), but it still sais undefined reference!
Edit - If I create another function almost...
Forum: C++ Apr 22nd, 2008
Replies: 3
Views: 590
Posted By linux0id
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
Posted By linux0id
Re: sql "insert into" question

yep, the UPDATE statement was it. Thanks a lot!
Forum: MySQL Mar 26th, 2008
Replies: 4
Views: 483
Posted By linux0id
Re: sql "insert into" question

UPDATE is what I think I need. I will try it out tonight and see what happens. Thanks
Forum: MySQL Mar 26th, 2008
Replies: 4
Views: 483
Posted By linux0id
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
Posted By linux0id
Re: strange behavior in simple number addition!

That solved it! Thanks A LOT! Next time I will pay more attention to what I am doing... :)
Forum: C++ Mar 23rd, 2008
Replies: 2
Views: 251
Posted By linux0id
Help 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
Posted By linux0id
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
Posted By linux0id
Re: how to insert variables into string with % sign?

its not the boost library, I had a look again - it is the sprintf function. Now I will look at the documentation.
Forum: C++ Feb 13th, 2008
Replies: 5
Views: 1,000
Posted By linux0id
Re: how to insert variables into string with % sign?

No, but I want to use this for sqlite3 to insert data into tables, like combine the "insert into" command with data. Do I have to "print" it to string and then use it? Thanks
Forum: C++ Feb 13th, 2008
Replies: 5
Views: 1,000
Posted By linux0id
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
Posted By linux0id
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
Posted By linux0id
Re: confused about clarification on class objects

Thanks a lot! That explains why by pointer there are have horrible memory errors!
Forum: C++ Feb 5th, 2008
Replies: 4
Views: 261
Posted By linux0id
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
Posted By linux0id
Re: linux C++ include file error

thanks a lot chandra.rajat! That has helped!
Forum: C++ Jan 31st, 2008
Replies: 7
Views: 940
Posted By linux0id
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
Posted By linux0id
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
Posted By linux0id
Help 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
Posted By linux0id
Re: Linux Assembly - how to output numbers instead of ASCII symbols

Thanks a lot! I managed to do it for one digit, but couldnt think how to do it for two or more! The machine that I'm using is AMD64 bit, so the register rax is equvalent to eax, but just is 64 bit....
Forum: Assembly Jul 22nd, 2007
Replies: 10
Views: 2,904
Posted By linux0id
Re: Linux Assembly - how to output numbers instead of ASCII symbols

Guess I'll just have to try it then. Thanks a lot anyway!
Forum: Assembly Jul 22nd, 2007
Replies: 10
Views: 2,904
Posted By linux0id
Re: Linux Assembly - how to output numbers instead of ASCII symbols

Thanks a lot for your reply. I will try it out soon, at least for singel digits. Is there a simpler way of fixing it?
Forum: Assembly Jul 22nd, 2007
Replies: 10
Views: 2,904
Posted By linux0id
Linux Assembly - how to output numbers instead of ASCII symbols

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...
Showing results 1 to 33 of 33

 
All times are GMT -4. The time now is 3:39 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC