Skip to content

Commit

Permalink
Merge pull request #3 from ololx/develop
Browse files Browse the repository at this point in the history
Add "Dual channel" mode checkbox
  • Loading branch information
ololx authored Nov 23, 2020
2 parents 600fae0 + 9716506 commit 76a2a93
Show file tree
Hide file tree
Showing 51 changed files with 270 additions and 463 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

- Other UI elements for the SBC codec settings.

## [2.1.0] - 2020-11-23

### Added

- The new checkbox for write/delete "Dual Cjannel" mode.

### Changed

- The components organisations - grouped by boxes.

## [2.0.0] - 2020-11-15

### Changed
Expand All @@ -24,4 +34,4 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

### Added
- The mac Automator application which allows to:
- Increase the sbc bluetooth audio bit rate with in one click.
- Increase the sbc bluetooth audio bit rate with in one click.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a simple tool for the sound quality improving of wireless headphones with the sbc codec on a mac.

[![status](https://img.shields.io/badge/status-frozen-inactive?style=flat-square)](BADGES_GUIDE.md#status) [![version](https://img.shields.io/badge/version-2.0.0-informational?style=flat-square)](BADGES_GUIDE.md@version) [![oss lifecycle](https://img.shields.io/badge/oss_lifecycle-maintenance-important?style=flat-square)](BADGES_GUIDE.md#oss-lifecycle) [![maintenance](https://img.shields.io/badge/maintenance-yes-informational?style=flat-square)](BADGES_GUIDE.md#maintenance) [![latest release date](https://img.shields.io/badge/latest_release_date-November_15,_2020-informational?style=flat-square)](BADGES_GUIDE.md#release-date) [![last commit](https://img.shields.io/badge/last_commit-November_15,_2020-informational?style=flat-square)](BADGES_GUIDE.md#commit-date)
[![status](https://img.shields.io/badge/status-frozen-inactive?style=flat-square)](BADGES_GUIDE.md#status) [![version](https://img.shields.io/badge/version-2.0.0-informational?style=flat-square)](BADGES_GUIDE.md@version) [![oss lifecycle](https://img.shields.io/badge/oss_lifecycle-maintenance-important?style=flat-square)](BADGES_GUIDE.md#oss-lifecycle) [![maintenance](https://img.shields.io/badge/maintenance-yes-informational?style=flat-square)](BADGES_GUIDE.md#maintenance) [![latest release date](https://img.shields.io/badge/latest_release_date-November_23,_2020-informational?style=flat-square)](BADGES_GUIDE.md#release-date) [![last commit](https://img.shields.io/badge/last_commit-November_23,_2020-informational?style=flat-square)](BADGES_GUIDE.md#commit-date)

[![license](https://img.shields.io/badge/license-MIT-informational?style=flat-square)](LICENSE) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg?style=flat-square)](code_of_conduct.md)

Expand Down
4 changes: 2 additions & 2 deletions Sbc Bitpool Expander.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 2.0.0;
MARKETING_VERSION = 2.1.0;
PRODUCT_BUNDLE_IDENTIFIER = "org.ololx.sbc-bitpool-expander";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand All @@ -307,7 +307,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 2.0.0;
MARKETING_VERSION = 2.1.0;
PRODUCT_BUNDLE_IDENTIFIER = "org.ololx.sbc-bitpool-expander";
PRODUCT_NAME = "$(TARGET_NAME)";
};
Expand Down
Binary file not shown.
17 changes: 13 additions & 4 deletions Sbc Bitpool Expander/AppDelegate.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ script AppDelegate
-- IBOutlets
property theWindow : missing value

-- The dual channel mode value from checkbox
property dualChannelModeValue : missing value

-- The current/initial bitpool value from slider
property currentBitpoolValue : 53
property currentBitpoolValue : missing value

-- The min bitpool value from slider
property minBitpoolValue : 53
property minBitpoolValue : missing value

-- The max bitpool value from slider
property maxBitpoolValue : 64
property maxBitpoolValue : missing value

on applicationWillFinishLaunching_(aNotification)
-- Insert code here to initialize your application before any files are opened
Expand All @@ -32,7 +35,13 @@ script AppDelegate

-- When "Ok" button was clicked
on okButtonClick_(sender)
set runnableScript to "sudo defaults write bluetoothaudiod \"Apple Initial Bitpool\" -int " & currentBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Apple Initial Min\" -int " & minBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Apple Bitpool Min\" -int " & minBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Apple Bitpool Max\" -int " & maxBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Negotiated Bitpool\" -int " & currentBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Negotiated Bitpool Min\" -int " & minBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Negotiated Bitpool Max\" -int " & maxBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Apple channel type\" -string \"Dual Channel\""
if dualChannelModeValue's intValue() = 1 then
set dualChannelBluetoothaudiodCommand to "sudo defaults write bluetoothaudiod \"Apple channel type\" -string \"Dual Channel\""
else
set dualChannelBluetoothaudiodCommand to "sudo defaults delete bluetoothaudiod \"Apple channel type\""
end if

set runnableScript to "sudo defaults write bluetoothaudiod \"Apple Initial Bitpool\" -int " & currentBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Apple Initial Min\" -int " & minBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Apple Bitpool Min\" -int " & minBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Apple Bitpool Max\" -int " & maxBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Negotiated Bitpool\" -int " & currentBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Negotiated Bitpool Min\" -int " & minBitpoolValue's intValue() & ";" & "sudo defaults write bluetoothaudiod \"Negotiated Bitpool Max\" -int " & maxBitpoolValue's intValue() & ";" & dualChannelBluetoothaudiodCommand

do shell script runnableScript with administrator privileges
end buttonClick_
Expand Down
Loading

0 comments on commit 76a2a93

Please sign in to comment.