GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fixed mp3 loading problem for osx and added failsafe if file is not e… · zyangpointer/processing@8e3789e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • java/libraries/sound
    • library/macosx
      • libMethClaInterface.jnilib
      • libmethcla.dylib
    • src
      • cpp
        • processing_sound_MethClaInterface.cpp
      • processing/sound
        • SoundFile.java
    • todo.txt
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎java/libraries/sound/library/macosx/libMethClaInterface.jnilib‎

Copy file name to clipboard
460 Bytes
Binary file not shown.
Collapse file

‎java/libraries/sound/library/macosx/libmethcla.dylib‎

Copy file name to clipboard
494 KB
Binary file not shown.
Collapse file

‎java/libraries/sound/src/cpp/processing_sound_MethClaInterface.cpp‎

Copy file name to clipboardExpand all lines: java/libraries/sound/src/cpp/processing_sound_MethClaInterface.cpp
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ JNIEXPORT jint JNICALL Java_processing_sound_MethClaInterface_engineNew (JNIEnv
8181
.addLibrary(methcla_plugins_tri)
8282
.addLibrary(methcla_plugins_pulse)
8383
.addLibrary(methcla_soundfile_api_libsndfile)
84+
.addLibrary(methcla_soundfile_api_mpg123)
8485
.addLibrary(methcla_plugins_patch_cable)
8586
.addLibrary(methcla_plugins_sampler)
8687
.addLibrary(methcla_plugins_white_noise)
Collapse file

‎java/libraries/sound/src/processing/sound/SoundFile.java‎

Copy file name to clipboardExpand all lines: java/libraries/sound/src/processing/sound/SoundFile.java
+9-3Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package processing.sound;
22
import processing.core.*;
3+
import java.io.File;
34

45
public class SoundFile implements SoundObject {
56

@@ -14,8 +15,7 @@ public class SoundFile implements SoundObject {
1415
float m_add=0;
1516
int m_cue=0;
1617
float m_pos=0;
17-
boolean m_loop;
18-
18+
boolean m_loop;
1919

2020
public SoundFile(PApplet theParent, String path) {
2121
this.parent = theParent;
@@ -24,7 +24,13 @@ public SoundFile(PApplet theParent, String path) {
2424
m_engine.start();
2525
methCla = new MethClaInterface();
2626
m_filePath=theParent.dataPath(path);
27-
m_info = m_engine.soundFileInfo(m_filePath);
27+
File sample = new File(m_filePath);
28+
if(sample.isFile() == true){
29+
m_info = m_engine.soundFileInfo(m_filePath);
30+
}
31+
else {
32+
System.out.println("Error: Soundfile doesn't exist. Pleae check path");
33+
}
2834
}
2935

3036
public int frames(){
Collapse file

‎java/libraries/sound/todo.txt‎

Copy file name to clipboardExpand all lines: java/libraries/sound/todo.txt
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
+ Fix problem of passing effects to Analyzers
1414
+ Make audio input work
1515
- Use Patch Cables for signal splitting for effects
16+
+ Fix MP3 thing
1617

1718
Features:
1819
+ Compile Windows Version

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.