donnemartin / donnemartin/notes

Issue : `mFileName` in `AudioPlayer` and `AudioRecorder` should not be static

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
55
Forks
26
PR merge metrics
No merged PRs in 30d

Description

The `mFileName` fields in both `AudioPlayer` and `AudioRecorder` are declared as `static`. This means that all instances of these classes will share the same file name, which is likely not the intended behavior. Each instance of these classes should have its own unique file name. Remove the `static` keyword from the declaration of `mFileName` in both classes.

```java
// AudioPlayer.java
private String mFileName;
```

```java
// AudioRecorder.java
private String mFileName;
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.