Questions tagged [mixing]

245 questions
55
votes
5 answers

Can I mimic a C header that redefines bool in C++?

I am writing a program and I would really prefer to write in C++, however, I'm required to include a C header that redefines bool: # define false 0 # define true 1 typedef int bool; The obvious solution would be to edit the header to…
L Co
  • 805
  • 11
  • 17
48
votes
2 answers

How to mix colors "naturally" with C#?

I have to mix some colors in a natural way. This means blue + yellow = green blue + red = purple And so on. I got the colors as RGB-Values. When I try to mix them I got the right "RGB"-results like green + red = yellow yellow + blue = white But…
crono
  • 3,603
  • 3
  • 27
  • 24
37
votes
13 answers

Calculation of a mixed color in RGB

I want to be able to take two RGB-256 vectors and calculate the result of their mixture. Also I want to be able to give each vector a different weight. I've experimented with it using the Word color plate, and I've seen that while some colors do mix…
SIMEL
  • 8,745
  • 28
  • 84
  • 130
28
votes
12 answers

Using/Mixing C in C++ code?

Is using C in C++ bad? Many people have told me that using C in C++ is bad because it's not as safe, and it requires more memory management. I keep telling them that as long as you know what you're doing, and you delete your "new"s and free your…
Brad
  • 10,015
  • 17
  • 54
  • 77
24
votes
5 answers

Is there a way to mix MonoTouch and Objective-C?

I'd like to know if there is a way to mix C# and Obj-C code in one project. Specifically, I'd like to use Cocos2D for my UI in Obj-C and call some MonoTouch C#-Library that does some computations and get some values back. Is there a way to do this?…
Kenny
22
votes
8 answers

Color mixing in android

I am working on application in which i have five colors:Red,Green,Blue,Yellow,purple I want to implement color mixing from those colors:such that like there are five button for each color. User touch whichever color button this color mix with…
chikka.anddev
  • 9,569
  • 7
  • 38
  • 46
14
votes
4 answers

iPhone: Mix two audio files programmatically?

I want to have two audio files and mix and play it programmatically. When I am playing the first audio file, after some time(dynamic time) I need to add the second small audio file with the first audio file when somewhere middle of the first audio…
Getsy
  • 4,887
  • 16
  • 78
  • 139
12
votes
6 answers

Can you mix the JVM languages? ie: Groovy & Clojure

I understand that you can easily mix groovy&java, clojure&java, whateverJvmLang&java. Does this also mean I can have clojure and groovy code interact as well? If I use Grails or jRoR, can I also make use of clojure in that environment?
PopsiclePolly
12
votes
8 answers

how to convert C# to C++

Could someone please help me to convert C# to C++? here is an example: using System; using System.Net; using System.Text; using System.IO; using System.Threading; namespace read_website { class Program { static void Main(string[]…
make
  • 755
  • 7
  • 21
  • 37
10
votes
4 answers

How to pass float value where datatype is CMTime?

I am creating an application in which I have to mix the songs. I have accomplished this but the problem is when I am using the following function. - (BOOL)insertTimeRange:(CMTimeRange)timeRange ofTrack:(AVAssetTrack *)track atTime:(CMTime)startTime…
Developer
  • 6,375
  • 12
  • 58
  • 92
10
votes
1 answer

JavaFx response to SwingUtilities.invokeLater

So I am aware that JavaFx's method of updating the GUI while using a thread is called Task but does the code work in similar way or are there any differences. let me give you a swing example: Another class outside the GUI that runs as a…
Marc Rasmussen
  • 19,771
  • 79
  • 203
  • 364
9
votes
6 answers

Mixing 16 bit linear PCM streams and avoiding clipping/overflow

I've trying to mix together 2 16bit linear PCM audio streams and I can't seem to overcome the noise issues. I think they are coming from overflow when mixing samples together. I have following function ... short int mix_sample(short int sample1,…
Ragnar
  • 1,387
  • 4
  • 20
  • 29
7
votes
2 answers

Recommended way to use C++ class into Objective-C class minimizing using of Objective-C++?

I'm mixing Objective-C and C++. However I want to minimize using of Objective-C++. Because it has some kind of limits in both of Objective-C and C++. Currently, I'm using it like this. // A.h, Objective-C #import "B.h" @interface A { B*…
eonil
  • 83,476
  • 81
  • 317
  • 516
7
votes
11 answers

When to mix languages?

What are some situations where languages should be mixed? I'm not talking about using ASP.NET with C# and HTML or an application written in C accessing a SQL database through SQL queries. I'm talking about things like mixing C++ with Fortran or Ada…
Inno
  • 2,567
  • 5
  • 32
  • 44
6
votes
3 answers

mixing 2 sounds from ByteArray

I have build a mixer and save all the sequence in an array and then play it again, now I want to save the mix as an MP3, I have looked for any way to save the mix and the answer is to load the sounds as byteArrays (sound.extract) I have acomplish…
luosKrad
  • 61
  • 1
  • 2
1
2 3
16 17