Commit 39c6c813 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

move private aout_sys_t declaration in aout.c

parent 6d756cdf
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include <stdint.h>
#include <jni.h>
#include <vlc/vlc.h>
......@@ -11,6 +15,15 @@
// An audio frame will contain FRAME_SIZE samples
#define FRAME_SIZE (4096*2)
typedef struct
{
jobject j_libVlc; /// Pointer to the LibVLC Java object
jmethodID play; /// Java method to play audio buffers
jbyteArray byteArray; /// Raw audio data to be played
JNIEnv *p_env; ///< Main thread environment: this is NOT the
/// play thread! See comments in aout_play()
} aout_sys_t;
/** Unique Java VM instance, as defined in libvlcjni.c */
extern JavaVM *myVm;
......
#ifndef LIBVLCJNI_AOUT_H
#define LIBVLCJNI_AOUT_H
#include <string.h>
#include <jni.h>
typedef struct
{
jobject j_libVlc; /// Pointer to the LibVLC Java object
jmethodID play; /// Java method to play audio buffers
jbyteArray byteArray; /// Raw audio data to be played
JNIEnv *p_env; ///< Main thread environment: this is NOT the
/// play thread! See comments in aout_play()
} aout_sys_t;
#include <stdint.h>
int aout_open(void **opaque, char *format, unsigned *rate, unsigned *nb_channels);
void aout_play(void *opaque, const void *samples, unsigned count, int64_t pts);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment