C++ :: Create A Small Radio That Allows To Retrieve Audio From URL - External Libraries?

Apr 10, 2014

I've finished my series of tutorials and built a investment calculator with QT, now that's finished and I wanted to create a small radio that allows to retrieve audio from an URL. I wanted to use Juce but I'm clueless about it, I know how to program but I've never touched external libraries?

View 2 Replies


ADVERTISEMENT

C :: Program That Implements Audio Effect / Process Without Using External Libraries

Aug 1, 2013

The brief is to write a program that implements a musically-interesting or musically-useful audio effect/process in C without external libraries other than those prescribed (PortMedia/PortMIDI/PortSMF/PortAudio, Libsndfile).

View 6 Replies View Related

C++ :: Radio Station - Streaming Audio On The Web

Jan 22, 2013

work for a radio station as their webmaster, and we have been looking into online streaming options for the last few months for our website. Pretty much everyone charges a monthly fee for this type of service and I feel like it is something I am capable of doing myself.

At the station we have a computer dedicated to operating the music/talk. On this computer there is a program that ques all the music, ads, ect.. This would be my audio source: Either the program playing all the music, or the computer itself.

The problem I have been pondering all night is how would I access this input source? The only audio input I am familiar with accessing is .mp3 or .wav files. How can I code my program to access this audio the program is producing and stream it to people on the web?

View 1 Replies View Related

C++ :: Adding External Libraries?

Feb 5, 2013

I'd like to use the Big Integer Library [URL], but I have issues to use it. I'm using Xcode as compiler and I don't know how to include the library in my project files. When I drag all the files in the project directory and write the statement #include <BigInteger.hh> on the top of the declaration of the main function, even whiteout any other code, I get lots of build error on the .hh and .cc file.

how to include the library on my project.

View 1 Replies View Related

C# :: Small Program That Will Create Multiples Of The Previous Line?

Apr 4, 2015

Im trying to do a small program that will create multiples of the previous line *2, and spit out the anwser in seperate lines (as many times as the user wants)

Example if i wrote it in a bad way

2
4
8
16
32
etc.

At this time my code looks likes this, now im planing to get my hands on the IF statment

using System;
using System.Collections.Generic;
using System.Linq;

[Code].....

View 6 Replies View Related

C++ :: Create A GUI With Open Graphics Libraries

Aug 26, 2013

I'm trying to create a GUI with Open graphics Libraries.I have made a basic GUI that exits the program or shows the instructions if a option/Polygon is marked (A bigger one is behind them)But what I'm trying to do now is the following:

0. Start the direct access on the desktop
1. Screen: Press any key to continue
2. Select one option
2.1 Option one: Go to the circuit selection menu
2.1 Option two: View the instructions (Cleared)
2.1 Option three: Exit the game (Cleared)
3. Select a circuit
4. Go to the car selection menu
5. Select a car and start the race
6. Pause menu if Spacebar has been pressed

From the pause menu:

6.1. Go to the main menu
6.2. Restart the race
6.3. Exit

I know that it is OpenGL, but what i'm looking for is C++.How I could do that? What I have cleared is with IF but I'm looking for better alternatives.

View 1 Replies View Related

C++ :: How To Create Pros And Cons Of Shared Libraries

Aug 18, 2014

I want to know:

1. Pros and cons of shared libraries
2. How to create them(any tutorial link or book will be good)
3. Compare static libraries to dynamic ones

View 1 Replies View Related

C# :: Sharepoint Radio Button Value

Oct 28, 2014

I am working on a website so you can order online for a restaurant. I currently figured out how to get values of all checkboxes and dropdownlists but i still cannot seem to figure out radio buttons.

Right now i am just making a super string with all of the selected values but eventually i am going to want to make a receipt with a checkout page.

//this seems to work alright
XPathNodeIterator toppingIterator = myNavigator.Select("//my:ToppersGroup", NamespaceManager);
s +=+ "";
while (toppingIterator.MoveNext()) {
XPathNavigator node = toppingIterator.Current;
XPathNodeIterator children = node.SelectChildren(XPathNodeType.All);
while (children.MoveNext())

[Code] .....

View 5 Replies View Related

C# :: Selected Radio Button With Database In It?

Feb 24, 2014

I am developing a project that generates questions from a database, the questions are generated with multiple choice answers. On this form I have got a textbox that reds the question from the database and 4 radio buttons that reads the possible answers from the database. The radio buttons text names are updated with records from a database table each time the "next button" is clicked.

What I want this program to do is that when the user selects one of the radio buttons, I want the system to check if the selected radio button textname equals the right answer in the database table. for example in the table there are 5 columns namely: option1, option2, option3, option4 and rightAnswer. So whenever a user selects a radio button, I would like the system to check if the selected radio button's textname equals the record in the "RightAnswer" column and if so I would a messagebox to show "correct" and if not the messgaebox to show "wrong"

This is the the way I am updating the radio button text names from the database This method is called when the form is loaded

void LoadingPossibleAnswers() {
Query = "SELECT * FROM AnswersTbl";
theReader = conn.ExecuteStatement(Query);
while (theReader.Read()) {
radioButton1.Text = theReader["Option1"].ToString();

[code]....

This method is called when the button is clicked

void CorrectAnswer( RadioButton rdb) {
string correct = rdb.Text;
Query = "SELECT * FROM FROM AnswersTbl;"
theReader = conn.ExecuteStatement(Query);
while (theReader.Read())

[code]....

When ever I run my code above, else condition executes even if the correct radio button is selected.

View 3 Replies View Related

C# :: How To Show MessageBox In 2 Radio Button

Oct 21, 2014

I'm trying to do this :

when user chick first radio button a message1 will show with OK button
when user chick second radio button an another message2 will show with OK button

But its didn't work like this. its work like:

1- user chick first radio button
2- message1 will show with OK button
3- user click OK
4- user chick second radio button
5- message1 will show again with OK button
6- user click OK
7- then message2 will show again with OK button

so when user click in second time its show the 2 message the message1 then the message2

this is my code

private void radioButton2_CheckedChanged(object sender, EventArgs e) {
MessageBox.Show("Amount is ... " + money, "Amount" , MessageBoxButtons.OK , MessageBoxIcon.Information);
}
private void radioButton1_CheckedChanged(object sender, EventArgs e) {
MessageBox.Show("Item name : " + arr[0].name ,
"Availability", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

View 3 Replies View Related

C# :: How To Use List Box Based On Radio Button Selection

Jun 2, 2014

How to put together this assignment. Here is the assignment:

The ABC Shipping Company charges the Rates listed in the following table:

Weight of the package (in kilograms) Shipping rate per mile in California Shipping rate per mile other states

2 kg or less $2.0 $2.5

Over2 kg but not more than 6 kg $3.0 $3.5

Over 6 Kg but not more than 10 kg $3.5 $4.0

Over 10 Kg but not more than 30 Kg $4.0 $4.5

Over 30 kg $5.0 $5.5

Create an application that contains two radio buttons to select California or other states, a listbox for the user to select the package’s weight class, a textbox to enter the distance it is to be shipped, and a button to calculate and display the charges on a label control when it is clicked.

Input validation: Do not accept distances of less than 5 miles or more than 3000 miles

This is what I have so far. I don't know how to set up the listbox option for non california or how to set up a formula.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

[Code] ....

View 3 Replies View Related

C :: Using Small Buffer With Sprintf Causes Overflow?

Jan 3, 2014

Code:
char buffer1[10];
char buffer2[10] = "something";
sprintf(buffer1, "with %s", buffer2);

In a statement like the one above, is there a threat/leak or does it only truncate the string that is loaded into buffer1?

View 5 Replies View Related

C++ :: Add Small Function To Allow To Pause Game?

Dec 4, 2013

I am trying to add a small function to allow me to pause the game I am making. I measure the time elapsed using the following algorithm:

1. USE ""clock_t begin=clock();"" FOR SYSTEM TIME OF GAME BEGINNING.
2. USE ""cout<<(clock()-begin)/CLOCKS_PER_SEC;"" TO DISPLAY TIME ELAPSED IN SECONDS.

Now, if I want to pause, I would want to subtract the 'paused' time from the total time elapsed.Say,

clock_t pause, resume;
{
pause=clock();
.
.
.
resume=clock();
}

Then I would do cout<<(clock()-begin-(resume-pause))/CLOCKS_PER_SEC;

This, though is what I want, works only once(I can pause only once). I can use arrays of resume and pause, but it would still limit the number of times I can pause.

What I am looking for is a way to pause any number of times.

View 3 Replies View Related

C++ :: Write A Small B Before Capital B In The File?

May 16, 2013

Suppose my file a.txt has "ABC" written in it. Now I want to write a small b before capital B in the file. How will I do it. I've tried to do it but i'm having problems.

1. When opened in app mode seekp doesn't work.
2. When opened normally previous written data is erased.

View 5 Replies View Related

C# :: EMGU - Small Symbol Detection

Sep 16, 2014

I am trying to find the best way to detect a small symbol such as :

Just for testing features I tried to load these into SURF example that comes with EMGU and it does not pick it up... And I think the technology used for SURF is better for objects with more details and color gradients...

View 8 Replies View Related

Visual C++ :: Clicking On Radio Button Crashing Dialog

Mar 3, 2014

I have an existing dialog, having activex control, list control, tree control checkbox, button etc.... I added one radio button and executed the program. whenever i am clicking on the radio button, the dialog hang/crash. Even simply dragging one radio button from toolbox and executing also behaving in the same way.

View 2 Replies View Related

C Sharp :: Array Size Limitation Is Too Small

Mar 24, 2013

I am having difficulty with arrays because of the limitation of the size of the arrays that I can declare. I need sizes that are very large and windows or C# does not allow me to create bigger than the following for example:

public static int[] gaPoints = new int[20000000000000000000 + 1];

I get an error message saying that "integral size is too large".

I need to be able to declare sizes that are even much larger than the abovementioned size.

How can I circumvent this problem?

Do I have to use something other than arrays?

View 5 Replies View Related

C++ :: Storing Very Small Numbers - But Only Order Of Magnitude

Feb 9, 2013

I want to store a very small number - too small for even a long double. However, I don't need the number to be stored very precisely - in fact, all I really need is the order of magnitude of the number. For example, the number 5.205849034425 X 10^-381 can just be stored as an integer of -381 for my purposes. I don't really care about the precision of the 5.205849034425 part.

The reason I get this very small number, is because I am multiplying together thousands of numbers, all of which are around 0.0001 in value. So, one way to do this would be to store all these individual values as simply their order of magnitude (e.g. -4) and then instead of multiplying the numbers, I would just add up their orders of magnitude. However, I am wondering whether there is a way in C++ to do this without me having to change the way I store my data - I still would like to keep the original values if possible.

View 2 Replies View Related

C++ :: System For Managing Radio Station - Crashes When Tries To Dereference The Iterator

Jul 28, 2013

My assignment is to write a system for managing a radio station. The code is composed of four classes:

Song: each song has a name, a composer and a singer, and has a few segments: INTRO,VERSE,CHORUS,TRANSITION, while each represents a different length string of chars.
Playlist: a multiset of songs, and a pointer to a RadioStatistics instance (see below).
RadioStation: a set of Songs (will represent the station database), and a list of Playlists, each playlist holds a few songs from the database.
RadioStatistics: can only be instantiate once, this object gather statistics; it has two maps: one that counts how many times a song was played, and second that counts how many times each singer was played. (the key is the song/singer name, and the value is the counter).

The RadioStation has a constant that defines a limit to how many times a song is allowed to be played. whenever a song reaches this limit (meaning, it was played too much), the program needs to skip to the next song in the database.

so, I run this test from main, and the program crashes (or more accuratly get stuck, since the console stays open and the program keeps working until I stop it).

I made a few changes and run the debugger a few times, and was able to focus on the problem.

Song.h:
Code:
#ifndef SONG_H_
#define SONG_H_
#include<iostream>
#include<string>

[Code] ....

I ran a step by step debugger, and found out the problem lays with line 90 in RadioManager.cpp, when the while loop runs its fourth iteration. It crashes when it tries to dereference the iterator, while it points to the fourth playlist in the list.

And here's some more weird stuff: when I comment out line 73 in main.cpp - it works perfectly fine! (line 73 in particular! commenting out any other line in main.cpp didn't worked around the bug!)

View 13 Replies View Related

C++ :: Merge Sort Only Works Fine For Small Numbers

Apr 10, 2013

Whenever I try to call merge sort on large numbers say n=10000000. It gives an error. It works fine for small numbers, even though I have declared my Lists on the heap.

The below code is just the divde part.

List<long>* Merge(List<long> *ParentList) {
if((ParentList)->Length==1) {
return ParentList;

[Code] .....

View 1 Replies View Related

C Sharp :: How To Bind WPF Datagrid Radio-button Column To Entities Class

May 7, 2012

In my WPF application I created a LINQ to SQL entities class. Then I created a partial class and there add code to my entity class. Below is the code of it:

namespace Mynamespace {
    partial class rts_index {
        #region Fields  
        /// <summary>
        /// Status:
        /// "Selected" - true, "Unselected" - false.
        /// </summary>
        private bool _is_selected;

[code]....

Then I executed LINQ to SQL. Works perfectly well. Then I bound WPF Datagrid radiobutton column to is_selected property of the partial class. Below is XAML code:

.
.
.
<Window.Resources>
<CollectionViewSource x:Key="rts_indexViewSource" d:DesignSource="{d:DesignInstance my:rts_index, CreateList=True}" />
</Window.Resources>

[code]....

And here I have the problem. When I'm changing the radiobutton status from Unchecked to Checked it doesn't change the value of is_selected property from false to true in the partial class. I don't know why.

View 1 Replies View Related

C++ :: Program To Generate Pairs Of RSA Keys Using Small Prime Numbers

May 21, 2012

I have been writing a program to generate pairs of RSA keys using small prime numbers. I have been using mpz_invert() to get a value for d for the private key. On small prime numbers it calculates the correct value, but on larger primes it calculates incorrect values.

I'm assuming there must be an upper limit to the values the mpz_invert() function can handle? If so, what is this limit to avoid erroneous values?

View 1 Replies View Related

C++ :: Simulated Radio Station Holding A Contest - Guess Number / Sequential Search

Dec 14, 2014

I have an assignment to write the code for a simulated radio station holding a contest. The contest is for a "caller" (user input obviously) to guess a number from 1 to 500. The "randomly generated" numbers are already chosen and are being stored in a .txt file. The code is to search for number guessed by the caller and if they are wrong, next caller until a caller is correct. The end result is to display the winning number, the indexed location the number was found, and how many callers guessed. This is what I have...

Code:
#include<iostream>
#include<fstream>
using namespace std;
int sequenSrch(const int prizeArray[], int arrayLength, int searchedItem);
int guess();

[Code] ....

I'm not sure if I am even on the right track... when I pass something into the sequenSrh(); the code compiles, asks for the number to be guessed and ends.

View 2 Replies View Related

C++ :: How To Get Boost Libraries To Work With QT IDE

Mar 5, 2013

I have an issue getting boost libraries to work with QT IDE. Here are relevant lines from my .pro file...

INCLUDEPATH += c:/users/bob/desktop/boost_1_53_0/
LIBS += -LC:c:/users/bob/desktop/boost_1_53_0/stage/lib64

After adding #include <boost/filesystem.hpp> I get error...

C:UsersobDesktopqtpuntitled5mainwindow.cpp:3: error: C1083: Cannot open include file: 'boost/filesystem.hpp': No such file or directory

The IDE does not highlight the line. The error only appears on compilation.

View 2 Replies View Related

Visual C++ :: How To Add Boost Libraries

Oct 1, 2013

i have written an algorithm in VC++ 2010 express edition. i have used the following header files

#include<iostream>
#include<string>
#include<sstream>
#include<ctime>
#include<cassert>
#include<fstream>
#include<vector>

[Code]...

the algorithm worked fine in vc 2010 express edition....

the following header files are not working in vc5

#include<regex>
#include<tuple>
#include<numeric>
#include<unordered_set>
#include "clip.h"

Looks like some of hte boost libraries have to added with vc5.. If any one knows how to add boost libraries with vc5.

showing lot of errors in vc5... not able to run the algorithm in vc5. Our company has only vc5.... the algorithm has to be implemented in vc 2010....

View 2 Replies View Related

C++ :: How To Exchange Big Structures Across Libraries

Nov 6, 2014

I have written library in c++ for c++ application. Here, data exchange between library and client through structure. This structure has 20 members ( strings, integers, reals, pointers).

In some flows, library needs few members should get filled in the structure. for ex, application filled 3 integers information and passed to structure. But, in memory, whole structure is occupied.

I think, If library provides functions for every combination, then it would end up with lot of functions. I want to avoid that.

How to optimize data exchange between client and library? ( number of members may be filled sometimes 1, 2, 3, .. 20)

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved