🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #12463

JNI problem

#12463
From: Rima Parikh
Date: Wed, 06 Jan 1999 00:00
18 lines
1237 bytes
Hi :

I have a java application that needs to play an audio file in the realaudio
format (.rm). The java sound api
does not support .rm files, so I use the SDK (dll) provided by realaudio.

I have a C++ program that creates a thread and calls the realaudio dll to
play the file. It works fine when called from another c++ program. However,
now from my java application, I use JNI to call my C++ program which in turn
calls the realaudio dll to do the actual playing. This does not work.

The program captures the file for the length of the file (x seconds), but no
sound comes out. Realaudio dll uses the COM interface. Could this be a
problem? Is there any concern about threads in native code that might be
causing this problem? Any ideas greatly appreciated.

TIA,
Rima Parikh.
Technical Details
Message-ID: <770ioj$dg722@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,a9e70712d5e146df,start
X-Google-Attributes: gid111d45,public
From: "Rima Parikh" <parikh@cognicity.com>
Subject: JNI problem
Date: 1999/01/06
Message-ID: <770ioj$dg722@forums.borland.com>
X-Deja-AN: 429545254
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.swing