mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
Fix and use constants
This commit is contained in:
parent
068b7e775e
commit
577f06cfeb
2 changed files with 14 additions and 5 deletions
|
|
@ -30,9 +30,9 @@
|
|||
|
||||
#include <jack/jack.h>
|
||||
|
||||
#define WIDTH 640
|
||||
#define HEIGHT 480
|
||||
#define BPP 3
|
||||
#define WIDTH 320
|
||||
#define HEIGHT 240
|
||||
#define BPP 16
|
||||
|
||||
#define MAX_BUFFERS 64
|
||||
|
||||
|
|
@ -153,8 +153,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
jack_set_process_callback (data.client, process, &data);
|
||||
|
||||
data.width = 320;
|
||||
data.height = 240;
|
||||
data.width = WIDTH;
|
||||
data.height = HEIGHT;
|
||||
data.stride = data.width * 4 * sizeof(float);
|
||||
|
||||
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
|
||||
|
|
|
|||
|
|
@ -22,3 +22,12 @@ pipewire_jack = shared_library('jack',
|
|||
dependencies : [pipewire_dep, jack_dep, mathlib],
|
||||
install : false,
|
||||
)
|
||||
|
||||
if sdl_dep.found()
|
||||
executable('video-dsp-play',
|
||||
'../examples/video-dsp-play.c',
|
||||
c_args : [ '-D_GNU_SOURCE' ],
|
||||
install: false,
|
||||
dependencies : [jack_dep, sdl_dep, mathlib],
|
||||
)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue