Questions tagged [mixing]

245 questions
0
votes
0 answers

Mixing 2 wav files convert bytes from each wav file to shorts, get average of the shorts and write to output byte array

While going over all questions and answers related to "Mixing 2 wav files", most of the answers suggested - convert bytes from each wav file to shorts, get average of the shorts and write to output byte array. I also read that in multi channel…
0
votes
1 answer

Software audio mixing

I'm looking into learning how software mixing works in general (methods, best practices, pitfalls, etc...) so if anyone has any good c++ literature on the subject that explains how it works, it would be much appreciated. I've already seen the small…
JaimeBarrachina
  • 430
  • 8
  • 21
0
votes
1 answer

calling c functions in Objective C

Hi I am trying to use some pure C library in an iOS app, however I have no clue how to call and pass the parameters. Here are 2 functions, Node is a struct: Node *parse(FILE *f); void add_subnode(Node *t, Node *parent); Can someone show me some…
Ray
  • 16,025
  • 5
  • 31
  • 51
0
votes
1 answer

FFMPEG: i need audio channels 7 & 8 to be the main audio track for a video

I have a video with 8 channels of audio. I need tracks 7 (Left Stereo) and 8 (Right Stereo) to be the audio for the video (which I'm converting to flv). I've tried playing with -filter_complex and the join, amix, and amerge filters, as well as the…
lo_fye
  • 6,790
  • 4
  • 33
  • 49
0
votes
1 answer

Java How do you manage layers when drawing?

I am using Java's AWT package to draw using Graphics2D and a BufferStrategy on a Canvas. The Canvas is placed onto a JFrame. When I place Entities from my game onto the canvas and draw them they seem to be rendered in a seemingly random order. I…
Zach Sugano
  • 1,567
  • 5
  • 22
  • 41
0
votes
1 answer

How do you display a Applet in a Jpanel java

package net.rstown; import java.applet.Applet; import java.applet.AppletContext; import java.applet.AppletStub; import java.io.IOException; import java.net.URL; import java.net.URLClassLoader; import java.util.HashMap; import…
Keith
  • 3
  • 4
0
votes
3 answers

Elements mixing algorithm

Not sure about title. Here is what I need. Lets for example have this set of elements 20*A, 10*B, 5*C, 5*D, 2*E, 1*F I need to mix them so there are not two same elements next to each other and also I can for example say I don't want B and C to be…
LeonidasCZ
  • 153
  • 1
  • 8
0
votes
1 answer

AWT button not clickable in VLCJ

I have created a simple VLCJ project that consists of a simple embedded player and a button to exit. The code is as follows: package test; import java.awt.BorderLayout; import java.awt.Button; import java.awt.Color; import java.awt.Frame; import…
Eugene
  • 1,013
  • 1
  • 22
  • 43
0
votes
2 answers

JFrame contents not fully displayed

I am doing a JFrame in which the label inside I am dynamically add in from my database. In this case, sometimes it will be 3 data to be displayed and sometimes it will have 5 data to be displayed. The program do show the contents, but it shows only…
yt729
  • 11
  • 5
0
votes
3 answers

JPanel placed Behind JScrollPanel

I have this code, where Canvas is a class I made that extends JPanel it holds an image. But when I use it, it places the canvas not on top of the JScrollPane, but behind it. Why is it doing that? Here is how the ScrollPanel is…
Get Off My Lawn
  • 34,175
  • 38
  • 176
  • 338
0
votes
1 answer

How to add a JFrame to my program

I have a GUIPanel already created and I need to add it to a program I have, however; when I try to run the other program from within the main class the GUIPanel won't run, yet it will when I don't execute it(if that makes any sense). This is what…
Dan
  • 649
  • 4
  • 11
  • 19
0
votes
3 answers

c and c++ mixed

I need to call cpp method from c file. I have written this interface for that.. cpp file extern "C" void C_Test(int p){ Class::CPP_Test(p); } c file extern void C_Test(int p); void C_Function(){ C_Test(10); //error } I get error in c…
Meloun
  • 13,601
  • 17
  • 64
  • 93
0
votes
2 answers

Trying not to mix Swing and AWT

I'm making a game in Java. I found this tutorial: http://www.gamedev.net/page/resources/_/technical/general-programming/java-games-active-rendering-r2418 It shows how to do active rendering. They use a Canvas to paint. I've been using JPanel's up…
helsont
  • 4,347
  • 4
  • 23
  • 28
0
votes
1 answer

Jframe image + textfield

Hi i am trying to make a simple frame displaying an image a textfield and a button, but for some reason the textfield is invisible, since i am quite nooby at java and even more at these graphical things can you help :) THE CODE /* * To change this…
Evan
  • 1,683
  • 7
  • 35
  • 65
0
votes
3 answers

Audio mixing of Spotify tracks in ios app

My basic requirement is to mix two or more audio files (Like a DJ kind of app).. I could do this using local audio files. But I would like to know whether I can use two or more spotify tracks to be played simultaneously..? or play my local file…
revanth
  • 45
  • 2
  • 8